Database thread pool application thread pool what is the difference and how to configure it.

problem description

recently, I have been optimizing the related business of the system

learn that you can improve the performance of db through thread pooling

here comes the problem

mysql has its own thread pool. You can add parameters such as group by configuration to achieve the function of thread pool

and the db connection tool in web applications also has the function of thread pool

for example, sqlachemy in python comes with db pool, and can set size and so on

the question arises, whether these two things are the same thing
or whether the two are separate, so in the actual production environment, whether to set both or just one of them can be set.

Thank you here

Menu