Slowness issue when using Supavisor connection pooling with Prisma
Hey Prisma community, I've set up Supabase Supavisor connection pooling on my Supabase project but it turns out that the request is abnormally slow with Prisma when I use supavisor. I compared the time it took to make a request with
console.time
and the result was clear.
The tests are done locally with a remote postgres database hosted on Supabase with Supavisor enabled. I have the latest version of Prisma installed
Here is my connection string in my .env
With Supavisor : 291.246ms
Without Supavisor (same connection string in DATABASE_URL
and DIRECT_DATABASE_URL
) : 52.009ms
Does someone can help me ?
Have a nice day😉0 Replies