Robert
03/12/2021, 9:40 AM<URL>/pool?sslmode=require&pgbouncer=true
However this causes me a lot of trouble. I very often get an Error: P1002
during build time on Vercel (while running prisma migrate deploy --preview-feature
) and when using my app often get hit with a
Timed out fetching a new connection from the pool. Please consider reducing the number of requests or increasing the `connection_limit` parameter (<https://www.prisma.io/docs/concepts/components/prisma-client/connection-management#connection-pool>). Current limit: 5.
Granted I execute quite a few queries, but nothing crazy... and this is only 1 user! What if I have 10 active users? Or 100?
I thought setting pgbouncer=true
should be enough? Should I set connection limit to 11? Or to 5000? I'm very confused! What am I doing wrong? 😅Dominic Hadfield
03/12/2021, 9:44 AMDominic Hadfield
03/12/2021, 9:45 AMDominic Hadfield
03/12/2021, 9:55 AMRobert
03/12/2021, 10:01 AMDominic Hadfield
03/12/2021, 10:01 AMRobert
03/12/2021, 10:02 AMRobert
03/12/2021, 10:02 AMDaniel Norman
vercel.json
config and point it directly to the DB and continue using PgBouncer during the Lambda run-time.