perf(scan): skip manifest lists on exact snapshot cache hits - #374
Draft
wangyong9999 wants to merge 1 commit into
Draft
wangyong9999 wants to merge 1 commit into
wangyong9999 wants to merge 1 commit into
Conversation
2 tasks
This branch has not been deployed
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
Closes #375.
Repeated scans of the same snapshot and bucket decode the manifest lists before checking the snapshot live-entry cache. Check that cache after selecting the snapshot, and bypass manifest-list reads and decoding on an exact hit. Misses still rebuild the complete bucket; each scan still applies its request-specific filters.
Store the table file count with the cached entries to preserve skipped-file metrics. An exact hit now reports zero scanned manifests. This targets repeated point-read planning without introducing another cache or changing snapshot discovery.
Tests
pre-commit run --all-filesandgit diff --checkpassed on this upstream checkout.action_required); they have not run. No standalone end-to-end performance uplift is claimed for this individual planner optimization.API and Format
No public API, table storage format, or protocol change. Only the transient serialized snapshot-cache payload changes; its magic is versioned so old cache entries fall back to rebuilding. Snapshot selection and cache eligibility remain unchanged.
Documentation
Updated the manifest-entry cache guide to describe bypassing manifest lists and exact-hit scan metrics.
Generative AI tooling
Generated-by: Codex based on GPT-6.