Repository navigation
[core] Keep recent deletion vectors in the lookup file cache - #1594
Open
JeonDaehong wants to merge 1 commit into
Open
JeonDaehong wants to merge 1 commit into
JeonDaehong wants to merge 1 commit into
Conversation
This file contains hidden or 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
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.
Purpose
In deletion-vector mode, lookup compaction checks each hit against the deletion vector of the file it came from.
LookupFileCachekept one vector, so when consecutive keys hit files in different levels, every switch read the vector from the index file and decoded it again. With the defaultlocal-cache.whitelist(meta,global-index) those reads go to storage.Brief change log
Tests
deletion_vectors_of_alternating_files_stay_cachedreads two vectors, deletes the index file, and checks both again in turn. It fails on main because the second vector replaced the first.Measured on c7i.8xlarge with local files: 1M keys, deletion vectors on, then 8 rounds of updating a random share of the keys and compacting. Main and this branch alternated 3 times, and the table reads hash the same on both.
num-sorted-run.compaction-triggerIn the first shape the re-reads come from the rounds where several levels already carry deletion vectors (40,900 and 36,571 reads in rounds 6 and 7). On object storage each of those is a GET. The last two shapes compact everything each round, so they don't switch files and stay the same.
API and Format
No public API or storage format changes.
Documentation
None.