mysqljs / mysql

A pure node.js JavaScript Client implementing the MySQL protocol.
MIT License
18.28k stars 2.52k forks source link

Pool and Workers #2512

Closed BronislavKlucka closed 3 years ago

BronislavKlucka commented 3 years ago

Hi, I have a question about pool and worker threads, when creating pool of e.g. 5 connections in e.g. 3 workers, will there be 15 max connections (5 per every worker) or only 5 (shared across workers?) I would assume 15, but I'd like to make sure.... Thanks for the answer

dougwilson commented 3 years ago

Yes, that ia correct. You could even do that within the same worker, as the limit is per the pool instance you create.