-
Notifications
You must be signed in to change notification settings - Fork 376
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
Implement logarithmic index:count
in the memtx tree
#10139
Draft
mkostoevr
wants to merge
4
commits into
tarantool:master
Choose a base branch
from
mkostoevr:m.kostoev/gh-8204-log-offset-box
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Implement logarithmic index:count
in the memtx tree
#10139
mkostoevr
wants to merge
4
commits into
tarantool:master
from
mkostoevr:m.kostoev/gh-8204-log-offset-box
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The method is used in order to skip the specified amount of tuples when selecting with an offset. NO_DOC=internal NO_TEST=covered already NO_CHANGELOG=internal
4f6af76
to
591a4f6
Compare
This commit introduces a new `fast_offset` option of index. It means to enable the acceleration of select with offset in an index if it supports that (currently none of indexes do). NO_DOC=see the next commit NO_CHANGELOG=see the next commit
591a4f6
to
17eaf09
Compare
This patch makes the memtx tree index create different trees depending on the `fast_offset` index option. This is the first step towards the logarithmic select and iteration with offset and count implementation. NO_DOC=see the next commit NO_CHANGELOG=see the next commit
17eaf09
to
26bd05f
Compare
index:count
in the memtx tree
cd5649c
to
29c2d60
Compare
29c2d60
to
4fdbdb9
Compare
4fdbdb9
to
0765217
Compare
This patch creates a specialized implementation for `count` tree index method, which takes advantage of offset-based functions of the BPS tree with BPS_INNER_CARD config. In order to handle keys and iterators consistently with `select`, the iterator creation and key lookup algorithms had been refactored into separated functions. NO_DOC=see the next commit NO_CHANGELOG=see the next commit
0765217
to
b2d5ea9
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Part of #8204