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

Feature request: Support pgbouncer #10

Open
Sommerwiesel opened this issue May 1, 2024 · 0 comments
Open

Feature request: Support pgbouncer #10

Sommerwiesel opened this issue May 1, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Sommerwiesel
Copy link

Currently, syncious (due to using prepared statements) doesn't support pgbouncer in transaction mode.
My Invidious instance is rather big, so using pgbouncer for all db connections became an absolute must at some point. I would like sycious to use the connection pool of pgbouncer too, instead of using direct connections. I often have daily db connection spikes (during which pgboucner uses an additional reserve pool) and fear that syncious will at some point run into problems when using direct connections.

Request: Please make syncious pgbouncer compatible.

You could add do this by changing the db connection string as follows:
'{"host": "invidious-db", "port": 5432, "database": "invidious", "user": "kemal", "password": "kemal", "pgbouncer": true}'

And then change your code so that prepared statements aren't used when pgbouncer is set to true.

Cheers

@WardPearce WardPearce self-assigned this May 1, 2024
@WardPearce WardPearce added the enhancement New feature or request label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants