Max connections reached on large traffic

When hit with large traffic on our website, we're getting the error that the max connections have been met for Prisma. "Error querying the database: FATAL: Max client connections reached" Believe this comes from the ENV variable setting connection limit to 1. This is suggested in https://supabase.com/partners/integrations/prisma

I increased the connection limit from 1 to 2, and it seemed to solved the problem. Is this the right thing to do? If not, what should I do instead?
Supabase
Next-generation Node.js and TypeScript ORM.
Was this page helpful?