Please be aware that the SAP SQL Anywhere Forum will be shut down on August 29th, 2024 when all it's content will be migrated to the SAP Community.

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

I do not want to be executing the sa_flush_cache () every moment.


asked 23 Nov '16, 18:35

isvahe1's gravatar image

accept rate: 0%


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

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 23 Nov '16, 18:35

question was seen: 1,401 times

last updated: 25 Nov '16, 11:15