I have noticed that there is a speed difference with SET DELETED ON
I have been working on trying to speed up data queries.
The application is running on Windows Server 2016
I have done a lot of changes to improve speed such as dividing tables and optimising queries, and indexes as required, codepage and collate.
I have experimented with the location of the database, looked at temp files and disabled virus scanning in the users temp files to test for any differences.
There is definitely a speed difference between my dev computer and the server. Server is slower for data queries.
The server is running Raid 10 with SSD drives, 256gb ram.
File copy is blazing fast. Most other operations very fast.
The speed difference with data queries is noticeable though.
I have experimented with queries. I ran some tests 20 times to get a result:
SET DELETED ON
Dev Computer:
select all records into cursor 0.5 seconds
Server:
select all records into cursor 1.6 seconds
SET DELETED OFF
Dev Computer:
select all records into cursor 0.002 seconds
Server:
select all records into cursor 0.004 seconds
The speed difference with SET DELETED ON becomes quite noticeable on the server
But with SET DELETED OFF the speed on both computers is smoking.
Comments welcome.
UPDATE:
I noticed that there is no speed difference when I run the test using the command window in the IDE
But there is a difference when I compiled the exe
I compiled the main exe to bypass all the startup and only run the speed test.
I have been working on trying to speed up data queries.
The application is running on Windows Server 2016
I have done a lot of changes to improve speed such as dividing tables and optimising queries, and indexes as required, codepage and collate.
I have experimented with the location of the database, looked at temp files and disabled virus scanning in the users temp files to test for any differences.
There is definitely a speed difference between my dev computer and the server. Server is slower for data queries.
The server is running Raid 10 with SSD drives, 256gb ram.
File copy is blazing fast. Most other operations very fast.
The speed difference with data queries is noticeable though.
I have experimented with queries. I ran some tests 20 times to get a result:
SET DELETED ON
Dev Computer:
select all records into cursor 0.5 seconds
Server:
select all records into cursor 1.6 seconds
SET DELETED OFF
Dev Computer:
select all records into cursor 0.002 seconds
Server:
select all records into cursor 0.004 seconds
The speed difference with SET DELETED ON becomes quite noticeable on the server
But with SET DELETED OFF the speed on both computers is smoking.
Comments welcome.
UPDATE:
I noticed that there is no speed difference when I run the test using the command window in the IDE
But there is a difference when I compiled the exe
I compiled the main exe to bypass all the startup and only run the speed test.