Skip to content

Use automaton for multi term query warmups#6361

Open
rdettai-sk wants to merge 1 commit intomainfrom
multi-term-automaton-warmup
Open

Use automaton for multi term query warmups#6361
rdettai-sk wants to merge 1 commit intomainfrom
multi-term-automaton-warmup

Conversation

@rdettai-sk
Copy link
Copy Markdown
Collaborator

Description

We noticed that term sets and multi term queries can be very slow. Things are especially bad for term sets targeting dynamic fields -> the whole _dynamic postings list is currently warmed up, which can be huuuuuge (in our case close to 10% of the split).

This PR uses the automaton warmup for each field that has more than N (currently N=2) non positional terms inside the query.

This PR doesn't address the question of positional terms.

Unfortunately I didn't find a good way to test that the warm up is indeed smaller.

@rdettai-sk rdettai-sk changed the title Use automaton for multi term queries Use automaton for multi term query warmups Apr 29, 2026
@rdettai-sk rdettai-sk force-pushed the multi-term-automaton-warmup branch from 8225165 to 965a084 Compare April 30, 2026 06:49
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