R
Railway9mo ago
kaancan

How to increase connction string in my postgresql database

Hey is there an easy way to quickly increase the max_connections of my postgresql service ? Or do i need to ssh into the container and adjust the config ?
9 Replies
Percy
Percy9mo ago
Project ID: N/A
Brody
Brody9mo ago
a few things first - railway does not provide ssh access - yes there is a very easy way to up the connection limit but more importantly, why do we need to up the connection limit? the default is 100
kaancan
kaancanOP9mo ago
I have a usecase where i need to insert/retrieve a lot of information in 5 minutes. Its an AI usecase where i create and manipulate a lot of data I added concurrency and the database connection timeouts I dont really care about pricing or anything as long as the database has a good performance
Brody
Brody9mo ago
right but would this be a better usecase for pgbouncer?
kaancan
kaancanOP9mo ago
And latency is very important for my usecase Oh i see, let me take a look into that
kaancan
kaancanOP9mo ago
Thanks, just quickly ChatGPTed pgbounder. Do you know if i need to adjust anything on prisma side or can i just point it to pgBouncer ?
Brody
Brody9mo ago
i think theres some config needed, im not an expert on this topic though
kaancan
kaancanOP9mo ago
Thanks, will research on my own
Want results from more Discord servers?
Add your server