Python App Engine - MySQLdb connection pool

128 views
Skip to first unread message

Marc-Andre Bruneau

unread,
Oct 6, 2017, 4:43:06 PM10/6/17
to Google App Engine
Hi everyone,

Is there a way to enable connection pooling with MySQLdb or is it enabled by default? 

Thanks

George (Cloud Platform Support)

unread,
Oct 6, 2017, 7:16:28 PM10/6/17
to Google App Engine
Hello Marc-André, 

From SQLAlchemy 1.2 Documentation: 

"Connection Pool Configuration

The Engine returned by the create_engine() function in most cases has a QueuePool integrated, pre-configured with reasonable pooling defaults. If you’re reading this section only to learn how to enable pooling - congratulations! You’re already done. "

SQLAlchemy handles connection pooling and closing in the flexible environment, as documented on the "Using Cloud SQL for MySQL" page. In other words, connection pooling is enabled by default in this case. 

Reply all
Reply to author
Forward
0 new messages