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

asked 23 Nov '16, 18:35

isvahe1's gravatar image

isvahe1
504
accept rate: 0%

2

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 = 0 1? (Yes, I'm aware that in case that is true you will not treat it as a solution...)

(24 Nov '16, 05:09) Volker Barth
1

Did you mean to say "set max_query_tasks = 1" Volker?

(24 Nov '16, 12:57) Nick Elson S...
Replies hidden

Ah, yes, of course, thanks for the correction:)

(24 Nov '16, 16:53) Volker Barth
Comment Text Removed
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×242

question asked: 23 Nov '16, 18:35

question was seen: 186 times

last updated: 25 Nov '16, 11:15