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

feat(rdb_load): add support for loading huge lists #3850

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

andydunstall
Copy link
Contributor

Follows #3807 and #3823 to support loading huge lists (#3760).

Note since lists pack 8Kb of entries per node by default, this uses a smaller segment length than the other types. Otherwise we'd only flush every 2GB (4092x8kbx64), whereas with a 512 length segment, we flush every 0.25GB.

Comparing a 5GB list with 1KB elements (debug populate 1 test 1000 rand type list elements 5000000):

  • main: 3.29s / ~10GiB RSS
  • load-huge-lists with kMaxBlobLen (4092) segment len: 2.77s / ~9GiB RSS
  • load-huge-lists with 512 segment len: 2.21s / ~6.8GiB RSS

romange
romange previously approved these changes Oct 2, 2024
src/server/rdb_load.cc Outdated Show resolved Hide resolved
@romange romange merged commit a066579 into dragonflydb:main Oct 2, 2024
9 checks passed
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