Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't take locks for entities created in the same transaction.
There is no need to take locks for new entities that have not yet been committed because they cannot yet be visible to any other transaction. There should have been no contention for these locks, so this change should not have a significant impact, except where the cost of acquiring any lock is high, for example when acquiring locks for a slave in an HA cluster, where each lock acquisition requires a network call.
- Loading branch information
Showing
3 changed files
with
134 additions
and
76 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