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

[release-3.0]: config support rocksdb doubly skiplist to optimize reverse-scan #5368

Merged
merged 6 commits into from Sep 9, 2019

Conversation

Little-Wallace
Copy link
Contributor

@Little-Wallace Little-Wallace commented Aug 30, 2019

Signed-off-by: Little-Wallace bupt2013211450@gmail.com

What have you changed?

I have added one new memtable structure DoublySkipList into Rocksdb, which is similar to
InlineSkipList but optimize performance of Iterator::Prev(), which is used in reversed range query. I add a configuration option to enable this feature.

What is the type of the changes?

Pick one of the following and delete the others:

  • Improvement (a change which is an improvement to an existing feature)

How is the PR tested?

Unit tests
I have also tested this structure in RocksDB repo by unit tests.

Does this PR affect documentation (docs) or should it be mentioned in the release notes?

Yes. Set enable_doubly_skiplist in tikv.conf to enable this feature.

Does this PR affect tidb-ansible?

No

Refer to a related PR or issue link (optional)

You can see the details in this PR: tikv/rocksdb#116

Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
@Little-Wallace Little-Wallace changed the title config support rocksdb doubly skiplist to optimize reverse-scan [release-3.0]: config support rocksdb doubly skiplist to optimize reverse-scan Aug 30, 2019
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
@5kbpers
Copy link
Member

5kbpers commented Aug 30, 2019

/run-all-tests

@Connor1996
Copy link
Member

merge into master branch first?

@Little-Wallace Little-Wallace changed the base branch from release-3.0 to master September 2, 2019 08:06
@Little-Wallace Little-Wallace changed the base branch from master to release-3.0 September 2, 2019 08:06
@zhouqiang-cl
Copy link
Contributor

/test

@zhouqiang-cl
Copy link
Contributor

/run-all-tests

@you06
Copy link
Contributor

you06 commented Sep 9, 2019

/run-integration-cop-push-down-test tidb=release-3.0 pd=release-3.0 tidb-test=pr/885

Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
@zhouqiang-cl
Copy link
Contributor

/run-all-tests

Copy link
Member

@Connor1996 Connor1996 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@zhangjinpeng87 zhangjinpeng87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhangjinpeng87 zhangjinpeng87 added the status/can-merge Status: Can merge to base branch label Sep 9, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Sep 9, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Sep 9, 2019

@Little-Wallace merge failed.

@zhouqiang-cl
Copy link
Contributor

/run-integration-common-test

1 similar comment
@zhouqiang-cl
Copy link
Contributor

/run-integration-common-test

@zhouqiang-cl
Copy link
Contributor

/run-integration-common-test tidb-test=pr/883

@zhouqiang-cl zhouqiang-cl merged commit a31fea7 into tikv:release-3.0 Sep 9, 2019
@Little-Wallace Little-Wallace deleted the tikv/release-3.0 branch September 7, 2020 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/can-merge Status: Can merge to base branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants