Am getting the following error with Heroku databas...
# orm-help
h
Am getting the following error with Heroku database. Any help on how i can solve this
Copy code
Error querying the database: db error: FATAL: too many connections for role "qcjoaamjgbnxjx"
this my prisma file which I import
Copy code
import { PrismaClient } from '@prisma/client';

const prisma = new PrismaClient();
export default prisma;
g
are you connecting to that database with any other services? I feel like I was running into similar issues with my postgresql db. I solved it by using pgbouncer to handle connection pooling
I don't use heroku but see what connections are active and whether they're being closed properly after use.
h
no. its not even in production. am jsut testing the app and its crashing
@glenn i am using vercel to host the website
g