Closed freakout42 closed 8 months ago
On 19/01/2024 07:57, Axel K. Reinhold wrote:
connecting to MS SQLServer on the same machine when comparing same query with tsql (freetds-1.4.10 tool) and isql (ODBC tool) i get massive performance differences 0.664 seconds vs 0.005 seconds - any idea? In my application this makes it unusable.
Hmm, well, other than checking that logging is not on and the standard "isql is intended as a test tool" not sure what to suggest. tsql will just be sending the execute packet, then decoding what comes back and printing it. isql prepares, executes and then fetches a row and each column. Will be faster (maybe) using SQLExecDirect (-e), or writing code to use SQLBindCol().
i used isql "as a test tool" - i have same bad performance when i use the odbc-connection with a C-program (activerecord odbc-connector). The issue is with all sort of queries. Any idea how to track down this?
Sorry - it was the ODBC-log - for this special connection it affected the performance so much - rails makes an inventory of all tables on connect and this database has 2000 tables. thanks for your help.
connecting to MS SQLServer on the same machine when comparing same query with tsql (freetds-1.4.10 tool) and isql (ODBC tool) i get massive performance differences 0.664 seconds vs 0.005 seconds - any idea? In my application this makes it unusable.
thanks for your help.