[doc](query-cache) Document incremental merge (experimental)#3975
Open
asdf2014 wants to merge 1 commit into
Open
[doc](query-cache) Document incremental merge (experimental)#3975asdf2014 wants to merge 1 commit into
asdf2014 wants to merge 1 commit into
Conversation
Document the experimental incremental merge of the query cache in both the English and Chinese dev docs: how a stale entry is reused by scanning only the delta rowsets, the prerequisites (append-only index: duplicate-key, or merge-on-write unique-key verified through the delete bitmap window; non-finalize aggregation directly above the scan; local storage; capturable delta without delete predicates), the compaction threshold, and the observability surface (profile fields and BE metrics). Add five self-contained hand-drawn SVG diagrams: the full recompute vs incremental merge comparison, the merge-on-write delete bitmap window check, the per-instance dataflow, the decision flow with all fallback reasons, and an overview across FE, BE and storage.
Open
8 tasks
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.
What does this PR do?
Documents the experimental incremental merge feature of the query cache
in the dev docs, English and Chinese. The feature itself is proposed in a
companion PR in apache/doris, which links back to this document PR:
keep invalidating the hot partition's entries), how a stale entry is reused
by scanning only
(cached_version, current_version], the prerequisites(append-only index: DUP_KEYS, or merge-on-write UNIQUE_KEYS whose delta
window did not rewrite pre-existing keys; non-finalize aggregation directly
above the scan; local storage mode; capturable delta with no delete
predicates), entry compaction via
query_cache_max_incremental_merge_count, and observability (profilefields and BE metrics).
enable_query_cache_incrementalandquery_cache_max_incremental_merge_count, plus a cross reference from theinvalidation table.
under
static/images/next/query-cache/, one per subsection: comparison,merge-on-write delete bitmap window, per-instance dataflow, decision flow
with all fallback reasons, and the overall architecture.
The feature ships default-off behind the experimental session switch; the
docs mark it as experimental accordingly.