How to set DB pool size? #1593
-
Hi! I am running alembic on a PostgreSQL DB provided by the Supabase free tier, which has a limit of 15 connections and sometimes they lower it. Today I got this error:
Is there a way to set the DB pool size in the alembic configuration? I didn't found anything related in the alembic documentation. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
the pool size is set using pool_size on create_engine , which has to be somewhere in your app in order for you to connect |
Beta Was this translation helpful? Give feedback.
-
Thank you, that solved my issue. In
I switched to:
That solved my issue with the PostgreSQL Supabase DB free tier |
Beta Was this translation helpful? Give feedback.
the pool size is set using pool_size on create_engine , which has to be somewhere in your app in order for you to connect