you could use vectorize=“force”. If the query is not vectorizable then this context will throw an error and you could use that to see which of your queries need to be re-written
👍 1
d
D K
02/06/2023, 10:58 AM
also below are the additional query context params that i am using to improve performance. Please let me know if these params are good enough
enableParallelMerge is true by default no need to set it. forceLimitPushDown is false by default no need to set it. vectorize is also true by default. Changing the default vectorsize from 512 to 256 may not change performance by much
Vijay Narayanan
02/06/2023, 11:10 AM
useApproximateTopN is also true by default. As far as caching is concerned…(“populateCache”: false,
“useCache”: false) this is much trickier. Historical cache per segment results. What this means is that if the exact same query is run and you have both new and old segments the results for the old segments are picked up from cache while results for new segments are computed and the two are combined. This can speed up performance by an order of magnitude when you have the same query running repeatedly on additional data