-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: only create new txn for Bind if necessary
01ca1e5 changed Bind so that it always uses a transaction to resolve the arguments. This caused a performance hit, leading to this code using 4.2% of the CPU utilization in a read-only workload. To optimize the code, a new transaction is only created when necessary, which is when we need to resolve user-defined types or OID types. No release note since the optimization only applies to unreleased versions. Release note: None
- Loading branch information
Showing
1 changed file
with
23 additions
and
5 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