My system is designed so that every user has their own database with 3 collections inside.
I'm designing an admin system that need to connect to the user db when they log in - how do I design this using Mongoose?
I know that Mongoose has useDb that allow database switching, but if I do that for every user will I run into any concurrency issue? (User A performing something, User B login and switch the DB connection back)
createConnection is another viable option - however this means I need to require the model file and pass in the newly created connection everytime?