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
Add a new method to QueryConditionCache that determines whether the cached
query conditions need to be updated based on changes to underlying data or
configuration. This improves query performance by avoiding unnecessary cache
rebuilds while ensuring data consistency when conditions change. The method
also helps reduce unnecessary lock contention, improving concurrency in
multi-threaded query environments.
Performance improvements:
- Reduces the "native_queued_spin_lock_slowpath" hotspot of entry->mutex
from 76% to 1% with Clickbench Q10 on a 2 x 240 vCPUs system
- Increases QPS for Q10 and Q11 by 85% and 89% respectively
- Improves overall performance across 43 queries with a geometric mean gain
of 8.1%
Signed-off-by: Jiebin Sun <[email protected]>
Reviewed-by: Wangyang Guo <[email protected]>
0 commit comments