You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a new instances of PrismaClient each time with its own connection pool is not efficient in production applications. As for every new instance you make a new connection on the database pool.
Version to Reproduce (현재 사용한 버전)
Version: 10.2.1
Steps to Reproduce (재현 순서)
Go to middlewares, constrollers and services directory
Click on '....'
Scroll down to public users = new PrismaClient().user;
See error
Expected Behavior (예상 동작)
Heavy load on the database.
Solution:
Using some kind of singleton instead so it uses the same instance for all of these.
The text was updated successfully, but these errors were encountered:
Describe the Bug (버그 설명)
Creating a new instances of
PrismaClient
each time with its own connection pool is not efficient in production applications. As for every new instance you make a new connection on the database pool.Version to Reproduce (현재 사용한 버전)
Version: 10.2.1
Steps to Reproduce (재현 순서)
public users = new PrismaClient().user;
Expected Behavior (예상 동작)
Heavy load on the database.
Solution:
Using some kind of singleton instead so it uses the same instance for all of these.
The text was updated successfully, but these errors were encountered: