-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to properly create a pool connection using SqlAlchemy? #90
Comments
here is a minimal code to reproduce the issue:
|
Dear Federico, thanks for writing in. As promised, I already wanted to reach out to you on the QuantumLeap issue tracker at orchestracities/ngsi-timeseries-api#397 about the topic of connection pooling, but missed out on that yet. Apologies! First of all, I would recommend to use SQLAlchemy's On the one hand, it will default to using a Regarding appropriate pool size configuration for CrateDB's SQLAlchemy dialect, we must also have to take into account that outbound connections are going through I believe it is equally important to adjust the HTTP connection pool size maintained by this library and this is now possible [4] by using the
when using Please let me know if you see any improvements on QuantumLeap with these options. With kind regards, [1] https://docs.sqlalchemy.org/en/13/core/engines.html#pooling |
@amotl thx, we will look in using create_engine and "raw" connection |
we are trying to set up a dbpool connection for crate using SqlAlchemy (1.3.4), but we get the following error:
this how we create the connection:
the error bombs on closing the connection
The text was updated successfully, but these errors were encountered: