John Smeeth
04/13/2022, 4:43 AMconst prisma = new PrismaClient()
and connect to portgres on GCP, but I got error in connection in job as below
Error in connector: Error querying the database: db error: FATAL: remaining connection slots are reserved for non-replication superuser connections
How can I manage connection to database efficient to avoid get many connection? thank youNurul
04/13/2022, 6:26 AMconnection_limit
parameter to the connection string. This would make sure that only 1 connection is used.
You can read more about it here
Can you try this solution and see if it works for you?