Repository navigation
fix: fix up limit with joins - #11987
Conversation
User descriptionClose #3967 Description of changePull-Request Checklist
PR TypeBug fix Description
Diagram Walkthroughflowchart LR
A["Query with limit/offset<br/>and joins"] -->|Check pagination<br/>condition| B["Include limit/offset<br/>in condition"]
B -->|Clone query| C["Inner query<br/>for distinct IDs"]
C -->|Clear limit/offset| D["Outer query<br/>applies pagination"]
D -->|Second query| E["Load results<br/>without pagination"]
|
| Relevant files | |||||||
|---|---|---|---|---|---|---|---|
| Bug fix |
| ||||||
| Tests |
|
commit: |
PR Code Suggestions ✨Latest suggestions up to a64b6ad
Previous suggestionsSuggestions up to commit c51d280
|
||||||||||||||||||||||
Code Review by Qodo
✅ 1.
|
|
Persistent review updated to latest commit a64b6ad |
gioboa
left a comment
There was a problem hiding this comment.
I see.
In the this PR I added this comment:
When joins are present, a two-quer y distinct-id strategy is used
Yes I saw that @gioboa. I'd say it's a regression in performance and behaviour though. It means it's no longer possible to do a performant |
|
I did a fast alignment with the core team, I'll try to create a PR to preserve this with a single query. I can't guarantee that it's possible, need to try. Thanks for the heads up though 👍 |
This reverts commit 3657db8. Co-authored-by: Giorgio Boa <[email protected]>
Close #3967
Description of change
Pull-Request Checklist
masterbranchFixes #00000tests/**.test.ts)docs/docs/**.md)