1017 records is a lot of data?
When this call is executed on the machine where db is located it takes about 2 secs.
When it is executed on the LAN it takes about 4 seconds. When I am on WAN (public), it takes literally 5 minutes. The same sql request through SQL Management studio takes 2 secs on LAN and 2-4 secs on WAN.
Blame your ODBC driver. Qt driver is optimized for what it does, if you want to force it to load all the rows even if it doesn't want to, you probably get additional queries which slow down everything. Use a better driver or skip the unnecessary while loop.
That's what I am doing.Blame your ODBC driver
Which driver do you recommend? FreeTDS?
Use the driver most fit for your database. However I would first think whether I really needed this while loop. It seems not necessary.
Bookmarks