Skip to content

Correct deep-pagination-optimization.md#2506

Merged
Snailclimb merged 1 commit intoSnailclimb:mainfrom
whaliendev:patch-1
Oct 17, 2024
Merged

Correct deep-pagination-optimization.md#2506
Snailclimb merged 1 commit intoSnailclimb:mainfrom
whaliendev:patch-1

Conversation

@whaliendev
Copy link
Copy Markdown
Contributor

In the section on deep pagination optimization recommendations, even with deferred joins and subqueries, the internal SQL statements will still result in deep pagination. These queries need to be rewritten to use the primary key index (id). Otherwise, there is no difference from the original SQL, and performance might even be worse.

In the section on deep pagination optimization recommendations, even with deferred joins and subqueries, the internal SQL statements will still result in deep pagination. These queries need to be rewritten to use the primary key index (id). Otherwise, there is no difference from the original SQL, and performance might even be worse.
@whaliendev
Copy link
Copy Markdown
Contributor Author

Here are the evidence:

image
for subquery

image
for deferred join

@Snailclimb Snailclimb added the doc-bug Content error label Oct 17, 2024
@Snailclimb Snailclimb merged commit dc712a8 into Snailclimb:main Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-bug Content error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants