I have a NextJS project which connects to Supabase DB using Drizzle
Every day we get atleast 2 instance where the connection to DB errors saying “statement timeout”
The statement timeout configured in DB is 4min. The timeouts am seeing are happening in sub 100ms.
Want to understand in what circumstance this could be happening
Sorry that you’re facing this issue. Have you tried checking the Vercel logs to see if there are any other issues?
Can you confirm that you’ve Use connection pooler checked in your database settings?
If you need more help, please share your public repo or a minimal reproducible example. That will let us all work together from the same code to figure out what’s going wrong.