Skip to content

Commit

Permalink
Refactor MySQLConnection to use connection pooling and update connect…
Browse files Browse the repository at this point in the history
…ion pool size parameter
  • Loading branch information
josephmancuso committed Oct 27, 2024
1 parent ba7372f commit cf9bc84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/masoniteorm/connections/MySQLConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def create_connection(self, autocommit=True):


# Initialize the connection pool if the option is set
initialize_size = self.full_details.get("connection_pool_min_size")
initialize_size = self.full_details.get("connection_pooling_min_size")
if initialize_size and len(CONNECTION_POOL) < initialize_size:
for _ in range(initialize_size - len(CONNECTION_POOL)):
connection = pymysql.connect(
Expand Down

0 comments on commit cf9bc84

Please sign in to comment.