How do you time search query while debugging?

I'm currently debugging a slow query issue.
As expected, the first time query execution is the slowest with subsequent hits way faster due to caching.

As such, what is the best way to get consistent query times so I can debug properly?

Ive thought about using profile API but then it adds significant overhead of its own thus not giving true execution time perhaps?

You can try disabling caches (i.e. shard level request cache), but would that help, or does it make more sense to preload data before it is made available for search? See

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.