'Nodejs mysql2 - multi databases with multi pools - is it good approach?

I have a lot of databases and each request that come to my server can access different databases. So I thought to make a pool connections for each database (hold them in object as "array" with key -> value for db_name -> pool) and when user need something for DB X he goes to pool X and receives a connection from there and executes queries and then return it to the pool X when done.

is it a good approach? Thanks :)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source