Genie Discord forum

Hi!
How to recycle connections with SearchLight? I am running out of connections with a small number of calls. Postgres complains: error | LibPQ: connection to server at "127.0.0.1", port 5432 failed: FATAL: sorry, too many clients already connection to server at "127.0.0.1", port 5432 failed: FATAL: sorry, too many clients already

is it a searchlight issue?

looks like a postgres issue (number of connections available) and the fact that the connections don't disconnect?

but anyway - there is a SearchLightPostgreSQL.CONNECTIONS collection

if you have any suggestions on how to automate the reusal

I guess we need more info about this issue

Just built disconnects into my app