As stated in the docs:
>
All SQLAlchemy pool implementations have in common
that none of them “pre create” connections - all implementations wait
until first use before creating a connection
Is it possible to warm up, or pre create, the connections in the pool?
When I start my server, the connection pool is initially empty. I'm using Oracle and connection initialization has a lot of overhead. I'm seeing as high as 4 seconds sometimes.
The only way I can think of is to spawn a lot of threads that all check out a connection and release it after ~10 seconds. Is there a built in solution for this?
Thanks and best regards,
Matthew