-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not cache profiled search requests #29024
Comments
Pinging @elastic/es-search-aggs |
@polyfractal I have just opened an issue with the opposite case (slow |
Hiya @iverase, sorry for the delay. I may be missing the distinction between the two issues, but that was my intention with this one: do not cache the profile response in the Elasticsearch query cache (to prevent results from being served from cache), and try to prevent Lucene from caching the query components by flagging the whole thing as not-cacheable. I probably just explained myself poorly in the first post :) I agree... we should prevent profiling from being affected by various caches as much as possible since it makes comparisons difficult. |
I see three cases:
My point is that maybe the profiler should never see the queries served by the cache nor those queries being put on the cache. A fancy addition would be to mark the parts of the query which are sensitive for caching. |
Is there any progress? get same issue(case 3) while profiling es query |
Hi @silbertmonaphia, there is a (just-opened) PR that I believe will fix this issue: #48195 |
Closed by #48195 |
Today, profiled search requests are eligible for request caching, which can lead to some very confusing situations (fast
took
time but slow profile results because the results are being served by the cache). Profiling should never really be cached at all because of the nature of profiling.Related,
ProfileWeight
delegatesisCacheable()
to the wrapped query, but I wonder if we should perhaps return false to prevent the profiled query from affecting Lucene's caching statistics?The text was updated successfully, but these errors were encountered: