Hi all. I have a virtual server with 8 cores, in the first execution of a query takes all the cores, in a second execution only takes 1 core(very slow), if I want to take all the cores and more faster I need to clear the cache with sa_flush_cache(), some idea of why it happens That anywhere 17.0.4.2124 I do not want to be executing the sa_flush_cache () every moment. Regards |
As usually, it may help to show us the graphical plans of the first and the second query execution. If the first query makes use of several cores (and it is really just one query aka one request), it means that intra-query parallelism is used. Is the query always slow when you set max_query_tasks =
01? (Yes, I'm aware that in case that is true you will not treat it as a solution...)Did you mean to say "set max_query_tasks = 1" Volker?
Ah, yes, of course, thanks for the correction:)