Problem with Prisma
I have a problem with prisma and my db PostgreSql, whats i can resolve this?
Error querying the database: FATAL: sorry, too many clients already
My database url contains: ?connection_limit=20&pool_timeout=0&connect_timeout=300
10 Replies
Project ID:
8140907c-d91e-4495-8289-d77c9283a314
8140907c-d91e-4495-8289-d77c9283a314
are you connecting to your database from a serverless environment like vercel?
i connect simply, using database url, with my project containing my db and my back-end, with NestJS and Prisma
its direct connection
so the app that is connecting to the database is hosted on railway
yes
you might be opening a new connection for every query, maybe check out this docs page https://www.prisma.io/docs/orm/more/help-and-troubleshooting/help-articles/nextjs-prisma-client-dev-practices
my project is with nestjs, but its maybe resolved my problem, thanks
yep should still be applicable at a high level
ok