Ben Ezard
09/11/2021, 4:18 PMPrismaClient
, each of which hangs on to some memory even after $disconnect
is called
This appears to be backed up by the warning messages that I get saying Already 10 Prisma Clients are actively running
I'd expect $disconnect
to kill and release the memory of the underlying engine instance, but I assume there's a good reason why this isn't done
What's the recommended way of handling this please? Sadly it's private code so I can't link to a repo, but I'm happy to provide any requested details where possibleRamon Pans
09/11/2021, 4:27 PMBen Ezard
09/11/2021, 4:47 PMRamon Pans
09/11/2021, 4:48 PMRyan
09/13/2021, 5:57 AMBen Ezard
09/13/2021, 8:45 AMRyan
09/13/2021, 8:51 AM$disconnect()
should be enough.Ben Ezard
09/13/2021, 10:45 AM