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

What is the difference between this and pgbouncer / other connection pooling alternatives? #59

Open
YPCrumble opened this issue Feb 19, 2024 · 2 comments

Comments

@YPCrumble
Copy link

This is an interesting library as it seems easier to implement than pgbouncer. A section in the README explaining the difference between this and pgbouncer and potentially other libraries would be really helpful.

@jkgenser
Copy link

This is an in-process connection pool. It uses sqlalchemy's connection pool.

pgbouncer is a standalone proxy. It can be deployed as a sidecar to a process and function as a pooler for a process which would have a similar effect as this library.

pgbouncer can also be deployed as a proxy that receives n connections, and process/app level pooling would not be needed in such a scenario

@altairbow
Copy link
Owner

django-db-connection-pool is a wrapper based on SQLAlchemy connection pool, designed based on Django database connection backend, It is a easy way to implement connection pooling for multiple database types in Django.

PgBouncer has an independent connection pool implementation and cannot be used directly in Django

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

3 participants