Hello,
OK - here is something we found out today.
If this runs on the workstation, the entire night process takes 3 to 3.5 hrs
If this runs on the server, the entire process takes 10 minutes.
In terms of the process that is being held, it takes 3 hrs on the workstation and 1 minute on the server. There are more than 50,000 writes to the database, all seperate - as it is a program that is doing the update statements - it's not just an UPDATE.
The slowness (logging) is done during the LOGOUT, WRITE, WRITE,WRITE,WRITE, COMMIT
When we look at the LOCKS, we see about 10,000 things in there - and they are there for about 3 minutes and then they disappear. When running from the server, it goes so fast, we don't see them at all.
I saw the workstation was using the ODBC 9 driver to connect to the SQL Anywhere 12.01 database. I had the user fix this so it was a 12 driver and they are going to run the process tonight.
The issue has nothing to do with a query or query plan - we are just updating thousands of forecast/inventory records one at a time - within a transaction frame. Again, we run the process on the server and it's lightning fast.