-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pre-Explain SQL for
WithoutQueryVariables
(#15)
The current implementation of `WithoutQueryVariables` substitutes `?` for any query variables and calls `tx.Dialector.Explain`, which can result in a lot of string allocations. This implementation avoids the substitution and uses whatever the default representation of the query parameters is for the SQL dialect.
- Loading branch information
1 parent
2a6e1e2
commit 0e6d07e
Showing
2 changed files
with
36 additions
and
9 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