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

Opt(Table): Keep the cheaper parts of the index within Table struct #1608

Merged
merged 1 commit into from
Dec 3, 2020

Conversation

manishrjain
Copy link
Contributor

@manishrjain manishrjain commented Dec 3, 2020

Even for some integer fields like MaxVersion, KeyCount, OffsetsLength, we end up calling fetchIndex, which hits Ristretto cache. Instead, we could just keep these in memory always, because they're so cheap. This PR does that.


This change is Reviewable

@manishrjain manishrjain merged commit 6e7f078 into master Dec 3, 2020
@manishrjain manishrjain deleted the mrjn/cheap-index branch December 3, 2020 02:48
danielmai added a commit to dgraph-io/dgraph that referenced this pull request Dec 3, 2020
Keep the cheaper parts of the index within table struct. (dgraph-io/badger#1608)
danielmai added a commit to dgraph-io/dgraph that referenced this pull request Dec 3, 2020
Update Badger to bring in fixes to reduce memory usage during snapshot streaming.
dgraph-io/badger@3d225d7...70088c6

- Keep the cheaper parts of the index within table struct. (dgraph-io/badger#1608)
- Fix(OOM): Reuse pb.KVs in Stream (dgraph-io/badger#1609)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant