You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For hybrid query execution there are some special cases where we can improve performance. While it's not impacting every single query, in niche scenario impact can be big.
Some scenarios I can think of:
multiple sub-queries that after being rewritten are same. We can skip execution of the second query and just copy results from the first execution. This is equivalent of retrieving results from cache instead of executing same query again.
keeping track of the min score threshold, if we have size docs don't take any docs with score lower then the threshold. This is an optimization that will allow to skip adding score and kicking out the element from the min heap of collected scores, which is case of broad queries can be huge (e.g. query with 10M potentially matching docs executing in index with 100 shards -> saving min heap 100.000 operations.
The text was updated successfully, but these errors were encountered:
For hybrid query execution there are some special cases where we can improve performance. While it's not impacting every single query, in niche scenario impact can be big.
Some scenarios I can think of:
The text was updated successfully, but these errors were encountered: