I'm building a NextJS app with prisma and the Vercel Postgres database. Like recommended in the docs, I added this datasource to my schema.prisma:
datasource db { provider = "postgresql" url = env("POSTGRES_PRISMA_URL") directUrl = env("POSTGRES_URL_NON_POOLING")}Generally this seems to work fine but randomly I sometimes get the error "Timed out fetching a new connection from the connection pool. More info: http://pris.ly/d/connection-pool (Current connection pool timeout: 10, connection limit: 5)" from Prisma. When using another database provider I don't see those problems and there's next to no load on that website so it shouldn't reach any connection limits. I tried customizing the connection string to change timeouts or limits but that doesn't seem to work.
What's the issue with the connection here? Do I have some wrong settings?