[PR #7608] Avoid unnecessary flush after processing first row #10570

Open
opened 2026-01-22 16:07:59 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/7608

State: closed
Merged: Yes


The code as is needlessly flushes after just one row is updated or removed. It makes more sense to update after $batchSize elements are updated or removed, just as it is in the insert case.

**Original Pull Request:** https://github.com/doctrine/orm/pull/7608 **State:** closed **Merged:** Yes --- The code as is needlessly flushes after just one row is updated or removed. It makes more sense to update after ``$batchSize`` elements are updated or removed, just as it is in the insert case.
admin added the pull-request label 2026-01-22 16:07:59 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#10570