Speed up queries using old versions of MSSQL #28

Merged
merged 1 commit into from Mar 30, 2011

2 participants

@semmons99

add :mssql_unicode_strings opt to mssql db's to enable/disable unicode prefix

This change can greatly improve the speed of queries using older versions of mssql. In my testing, I got speed up's of 10x-100x. I couldn't come to a good solution to update Database#initialize and Dataset#initialize in lib/adapters/shared/mssql.rb, so the code for setting the option is found in the ADO, JDBC and ODBC adapters

@jeremyevans
Owner

This looks good. I'll probably refactor it a little, but as long as the tests pass, it'll go in. Thanks!

@semmons99

Awesome, thanks!

@jeremyevans jeremyevans merged commit b24da42 into jeremyevans:master Mar 30, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment