How to change the mongo connection pool size?
I have seen it is 100 by default. Is there a way to change this value?
I dont want to do it via spring, is there a
Extra options can also be set using MongoClientURI :
MongoClientOptions.Builder builder = new MongoClientOptions.Builder().connectionsPerHost(10)); MongoClientURI clientURI = new MongoClientURI(connectionURL, builder); MongoClient mongoClient = new MongoClient(clientURI);