Summary
Keep mongo clients as singleton in container per tenant id.
Also checks connection state before connecting in MongoDatabase.collection
.
Fixed
- New connections being made for every call to
IMongoDatabase
Keep mongo clients as singleton in container per tenant id.
Also checks connection state before connecting in MongoDatabase.collection
.
IMongoDatabase