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

Connection pool for postgres backend client #421

Open
Gnuxie opened this issue Nov 15, 2022 · 1 comment
Open

Connection pool for postgres backend client #421

Gnuxie opened this issue Nov 15, 2022 · 1 comment
Labels
A-Appservice T-Task Refactoring, enabling or disabling functionality, other engineering tasks X-Release-Blocker This issue must be resolved before the next release can be made

Comments

@Gnuxie
Copy link
Contributor

Gnuxie commented Nov 15, 2022

https://github.com/matrix-org/mjolnir/pull/364/files#r1015312029

Related: #415
Connections can't perform multiple queries simultaneously, and it's common to use a connection pool in asynchronous, long-running applications.
Additionally if we are disconnected while the database is being upgraded or for some other reason, we can reconnect automatically.

@Gnuxie Gnuxie added X-Release-Blocker This issue must be resolved before the next release can be made T-Task Refactoring, enabling or disabling functionality, other engineering tasks A-Appservice labels Nov 15, 2022
@Yoric
Copy link
Contributor

Yoric commented Nov 21, 2022

Would https://www.npmjs.com/package/pg-pool do the trick?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Appservice T-Task Refactoring, enabling or disabling functionality, other engineering tasks X-Release-Blocker This issue must be resolved before the next release can be made
Projects
None yet
Development

No branches or pull requests

2 participants