Closed asaf closed 3 months ago
@asaf I don't know what causes it, but it looks like an issue with Azure rather than our code.
I sent 120 concurrent requests to neon, and it works fine. As you can see, the number of connections never went over 12.
In any case, I'll make a PR to use the current engine, I just don't think it's actually the issue.
SqlAlchemy default connection pool is 5, we should check where do we create engines and if we re-use them correctly.
accessbot_postgres_too_many_connections.txt