Skip to content

Commit

Permalink
Dispose DataTable (#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad authored Dec 5, 2023
1 parent f237769 commit 83f3f51
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public partial class DqtReportingService : BackgroundService
public const string ProcessChangesOperationName = "DqtReporting: process changes";

private const int MaxParameters = 1024;
private const int PageSize = 300;
private const int PageSize = 500;
private const int MaxUpsertBatchSize = 100;
private const int MaxEntityTypesToProcessConcurrently = 10;

Expand Down Expand Up @@ -230,7 +230,7 @@ private async Task HandleNewOrUpdatedItems(
var entityTableMapping = _entityMetadata[entityLogicalName].EntityTableMapping;
string tempTableName = $"#import-{entityLogicalName}";

var dataTable = CreateDataTable();
using var dataTable = CreateDataTable();

using var conn = new SqlConnection(_options.ReportingDbConnectionString);
await conn.OpenAsync();
Expand Down

0 comments on commit 83f3f51

Please sign in to comment.