I retrieve data (orders) from SQL anywhere 12 with Powerbuilder (datawindow). Retrieve is ready within 5 seconds. Now I open a second instance of the application. I retrieve a report that takes about 3 minutes before retrieval is ready. During this retrieve I retrieve the orders again. Now it takes 90 seconds instead of 5. The database is started as a server (dbsrv12). The computer has 1 socket with 16 logical processors. I checked if there is a lock in the database which is not the case. Maximum number of physical processors the server (dbsrv12) will use: 1 I can not understand why the retrieval of a report is slowing down the retrieval of the orders. There is 16Gb of memory, 16 logical processors and only 1 of these processors is 100% during retrieve. Is this a development error? |
Show use all the dbsrv12.exe options used to start the server.
For example,
Also show us this:
Commandline:
-ha -n PEServer d:\Pe\data\company\pigexpert.db -n pe -hn0,21756:1396
Sa_eng_properties:
Where are the rest of the properties? N%, P%
Oeps, here they are
Could you add those for "MultiProgrammingLevel" - i.e. the number of tasks the database server can be active at the same time:
Other than that, have you compared the plans of both instances of the fast and slow performance of the orders query? Does it use the same indexes?
FWIW, version 12.0.1. has long been EOL'ed - but you are using a rather old v12.0.1 build itself, the last one on Windows is 12.0.1.4484, AFAIK, you may have a look at the fixes here.
What tool can I use to get the plans?
It's within the default DBISQL tool, see Plan Viewer and graphical plans in Interactive SQL .
I checked if the plan changed. This seems not be the case.
I copied the database to a ssd disk and tested again. Now, the speed is correct. So, probably the disk is the problem. Dbsrv12 is using only 345Mb of memory. The db itself is 191 Mb. Can I force sql anywhere to use more memory or even load the entire database in memory?
dbsrv12 -c200M
...or bigger, you can never have too much RAM cache
http://dcx.sybase.com/index.html#1200/en/dbadmin/c-database-dbengine.html
> I checked if the plan changed
Run a "Graphical Plan With Statistics", Save As to *.saplan, send me the file: breck carter gmail