Skip to content

feat(search): cache never-match queries via the predicate cache#6556

Open
PSeitz wants to merge 1 commit into
mainfrom
cache_terms
Open

feat(search): cache never-match queries via the predicate cache#6556
PSeitz wants to merge 1 commit into
mainfrom
cache_terms

Conversation

@PSeitz

@PSeitz PSeitz commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Repeated super-selective or non-existent term queries over many splits re-ran warmup on every request.

When warmup proves a split empty (a required term has an empty posting list), record a fake empty entry in the existing predicate cache, and consult it before warmup so later requests with the same predicate short-circuit with no storage reads.

Repeated super-selective or non-existent term queries over many splits
re-ran warmup on every request.

When warmup proves a split empty (a required term has an empty posting list),
record a fake empty entry in the existing predicate cache, and consult it before warmup so later
requests with the same predicate short-circuit with no storage reads.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@PSeitz PSeitz requested a review from a team as a code owner June 25, 2026 16:11
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.

1 participant