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

There is no need to sort keys for snapshot #6613

Closed
wants to merge 2 commits into from
Closed

There is no need to sort keys for snapshot #6613

wants to merge 2 commits into from

Conversation

thbourlove
Copy link
Contributor

@thbourlove thbourlove commented May 12, 2016

Required for all non-trivial PRs
  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated
  • Sign CLA (if not already signed)
Required only if applicable

You can erase any checkboxes below this note if they are not applicable to your Pull Request.

It looks like there is no need to sort keys for snapshot. And this make snapshot very slow when the length of key is bigger than 10m.

@jwilder
Copy link
Contributor

jwilder commented May 13, 2016

Can you provide a way to reproduce the slowness you are seeing? Are you saying you have 10m keys in the cache or that the length of a single key is 10mb?

The Keys call does need to be sorted for compactions so this change isn't quite right as is.

@thbourlove
Copy link
Contributor Author

@jwilder 10m keys in cache

@jwilder
Copy link
Contributor

jwilder commented May 23, 2016

While the sort is slow, it is still required for TSM snapshots.

@jwilder jwilder closed this May 23, 2016
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.

2 participants