Update filenaming scheme to match EFCore one

This commit is contained in:
JPVenson
2026-05-15 19:03:08 +00:00
parent 20dda72cec
commit f73fc1feb2
33 changed files with 10 additions and 4 deletions

View File

@@ -284,10 +284,16 @@ public class MergeDuplicatePeople : IAsyncMigrationRoutine
return;
}
await context.Peoples
.Where(p => idsToDelete.Contains(p.Id))
.ExecuteDeleteAsync(cancellationToken)
.ConfigureAwait(false);
var idx = 0;
foreach (var item in idsToDelete.Chunk(200))
{
idx++; // humans count at one
_logger.LogInformation("Remove batch {BatchNo}/{MaxBatches} duplicate Peoples.", idx, idsToDelete.Count / 200);
await context.Peoples
.Where(p => item.Contains(p.Id))
.ExecuteDeleteAsync(cancellationToken)
.ConfigureAwait(false);
}
_logger.LogInformation("Removed {Count} duplicate Peoples rows.", idsToDelete.Count);
}