We need to partition our data into multiple databases, stored on different disks. Is there any way to do this in RestExpress?
The only solution I see is to have multiple MongoConfig objects, one for each database. However that nneds a new MongoClient for each database with it's own thread pool of connections. I would rather have one thread pool and somehow just switch between databases.
Would it work if I would just reuse the same MongoClient and just specify a different db name in the repository?