[PR #8073] Optimize paginator removing useless left joins in subselect #10798

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

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

State: closed
Merged: No


Hi

Here is a draft of what could be a huge performance boost for Paginator

Actually, to optimize database db queries, we could join nested fields but, when using it with the Paginator and some filters, the distinct subselect injected suffer of all that left joined data that could be removed on that subselect returning ids

I am not hoping that could be merge like this but it opens the discussion

Thanks in advance for your opinion and tips

**Original Pull Request:** https://github.com/doctrine/orm/pull/8073 **State:** closed **Merged:** No --- Hi Here is a draft of what could be a huge performance boost for Paginator Actually, to optimize database db queries, we could join nested fields but, when using it with the Paginator and some filters, the distinct subselect injected suffer of all that left joined data that could be removed on that subselect returning ids I am not hoping that could be merge like this but it opens the discussion Thanks in advance for your opinion and tips
admin added the pull-request label 2026-01-22 16:08:43 +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#10798