forked from pymssql/pymssql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework row fetching across the module
Whilst checking the performance implications of pymssql#158 it was noted that there was a rather large amount of type conversion occuring when fetching a row from pymssql. The number of conversions required have been cut down significantly with these changes. For a tuple row it is changed from: tuple -> dict -> dict -> tuple to tuple And for a dictionary: tuple -> dict -> dict to dict -> dict The additional dict->dict conversion could be dropped with either additional arguments being passed to _mssql so it doesn't add the positional mappings to the dictionary. I didn't want to break the _mssql module just incase.
- Loading branch information
Damien Churchill
committed
Jan 9, 2014
1 parent
a97a43b
commit 563aeaa
Showing
3 changed files
with
50 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters