Confused with documentation related to instantiation of PrismaClient
Everywhere I looked, the suggestion is to instantiate PrismaClient once globally, but when working with
So, I'm confused. should I instantiate my PrismaClient globally or create and dispose the client for each request (and what's the recommended way for doing this)?
better-auth I encountered this warning after code snippet on how to do it globally:So, I'm confused. should I instantiate my PrismaClient globally or create and dispose the client for each request (and what's the recommended way for doing this)?
ORM
Optimize