Skip to content

Commit

Permalink
gc in excel generator
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilLord666 committed Jun 13, 2022
1 parent e81dbda commit ae0a9e0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public async Task<int> GenerateAsync(DbData data, object[] parameters)

_package.SaveAs(fileInfo);
_logger.LogDebug("Write DB data to excel file completed");
GC.Collect(2);
GC.Collect(1);
return data.Rows.Count;
}
catch (Exception e)
Expand Down

0 comments on commit ae0a9e0

Please sign in to comment.