forked from rails/rails
-
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.
Refactor SchemaCache to hold a ConnectionPool
Another refactoring in relation to rails#50793 But it makes sense even without it. Rather than each connection to have its own `BoundSchemaReflection`, we can instead have `BoundSchemaReflection` hold a `ConnectionPool`, from which it can checkout a connection to perform queries when needed. If the current thread already leased a connection, it will be used. This simplifies the interface quite a bit.
- Loading branch information
1 parent
df58d94
commit c5b022d
Showing
22 changed files
with
189 additions
and
147 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
Oops, something went wrong.