Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use zone map optimize paging query #1541

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

woxiaosa
Copy link

Task Description

close #1540

use Zone Map to optimize paging query.

This optimization can reduce the amount of data that needs to be sorted in paging query.

Solution Description

In memory, meta information (row count, maximum row, minimum row) is maintained for each dump file, and then the amount of data that needs to be read is reduced.

Passed Regressions

pass tests in ob repo

Upgrade Compatibility

This optimization is orthogonal to the implementation of Sort/Limit, so it's easy to integrate this optimization.

Release Note

This optimization speed up in ordered/semi-ordered scenarios.

@woxiaosa woxiaosa changed the title use zone map optimize offset use zone map optimize paging query Aug 30, 2023
@woxiaosa woxiaosa force-pushed the issue_1540 branch 6 times, most recently from b7480b8 to c0e3ce7 Compare August 31, 2023 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement]: optimize paging query by zone map pruning
1 participant