[Vuejs]-In mongodb, with individual and non-related data among clients. 1- Is it better to have one DB per client or 2- only one DB for all and query data?

0👍

In my experience, yes, separated DB(s) per customer is the best solution in the long run.
In your main administrative DB you can map customers to DB-servers giving you a lot of flexibility, for example to give more resources to big customers without impacting small ones.

Also consider using storage.directoryPerDB:true config option to reclaim disk space after deleting a DB (trial expired customer)

Leave a comment