Will reusing createPool cause performance issues? #1667
Am-CGH
announced in
Announcements
Replies: 1 comment
-
every time you do "new Mysql;" you create a new pool. it's really not the way to go because after 100 calls to the / route you will have 100 pools :) one solution is to do
That way you'll have only one pool in all your project. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used a single class in a module to encapsulate all mysql related methods:
If I instantiate the use in the request, will multiple accesses create multiple connection pools?
Beta Was this translation helpful? Give feedback.
All reactions