Closed phebing closed 1 week ago
Hello @phebing ,
Thank you for reporting.
Indeed the current option BatchDelayInterval = 2000;
and x.BatchSize = 1;
are only supported for SQL Server
We will look into adding this option for PostgreSQL. I cannot promise anything yet but I should be able to give you an answer within 1 or 2 weeks about if we add the support to it or not.
Best Regards,
Jon
Hello @phebing ,
The support for BatchDelayInterval
and BatchSize
has been finally added to PostgreSQL starting from version 8.103.2.0
If you have the chance to test it, could you let us know if everything is working as expected?
Best Regards,
Jon
Here is what to include in your request to make sure we implement a solution as quickly as possible.
1. Description
Delete does not use BatchSize or BatchDelayInterval when used with EntityFrameworkCore .Net8 and Postgres. Is that by design? Looking at /EntityFramework-Plus/src/shared/Z.EF.Plus.BatchDelete.Shared/BatchDelete.cs I can see that the
CommandTextPostgreSQLTemplate
does not contain a{Top}
that would be replaced byBatchSize
nor{Delay}
replaced byBatchDelayInterval
.If that is by design, then please let me know and mark this in the documentation of the method and on your online help (https://entityframework-plus.net/ef-core-batch-delete)
2. Exception
-
3. Fiddle or Project
Running that create the following Query:
4. Any further technical details
Further technical details