Skip to content
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

a more erganomic connection pool #41

Open
graingert opened this issue Feb 28, 2019 · 1 comment
Open

a more erganomic connection pool #41

graingert opened this issue Feb 28, 2019 · 1 comment

Comments

@graingert
Copy link
Contributor

something that automaticly connects, reconnects, and checks out connections with optional pessimistic connection checking. With options for connection recycling, size, overflow, lifo/fifo. Similar to https://docs.sqlalchemy.org/en/latest/core/pooling.html#sqlalchemy.pool.QueuePool

@wulczer
Copy link
Owner

wulczer commented Mar 19, 2019

I have to say that would be useful, but I'm not sure it txpostgres is the right project to implement a more featureful connection pool.

The existing implementation exists mostly to be able to easily port from Twisted upstream adbapi.ConnectionPool. I found some generic Python object pool implementations that could maybe be used to build a txpostgres connection pool...

I'll look at the SQLAlchemy pool features, maybe it's not too hard to port it for txpostgres, but I'm afraid it would expand the scope of this project too much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants