From cf9bc847966e200656cca8d9b816d4bc79c7fb3c Mon Sep 17 00:00:00 2001 From: Joe Mancuso Date: Sun, 27 Oct 2024 12:04:37 -0400 Subject: [PATCH] Refactor MySQLConnection to use connection pooling and update connection pool size parameter --- src/masoniteorm/connections/MySQLConnection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/masoniteorm/connections/MySQLConnection.py b/src/masoniteorm/connections/MySQLConnection.py index 9eb13bea..5045f59c 100644 --- a/src/masoniteorm/connections/MySQLConnection.py +++ b/src/masoniteorm/connections/MySQLConnection.py @@ -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(