Prisma connections #235
Unanswered
MarwanRadwan7
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am currently reviewing the repo and I found this line
public users = new PrismaClient().user;
and similar in each class. I want to ask: when we make this instance in every class means we are creating a new connection to the database for example: postgresql. Does this make an excessive use of the database pools ? Or how does this work!Beta Was this translation helpful? Give feedback.
All reactions