-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Java Drivers
-
Not Needed
Spark pushes down aggregation pipelines in the configuration when acquiring MongoClient instances. This change modifies the MongoClientFactory to only take the connection into account for lookups in MongoClientCache.
Without this change different queries against the same MongoDB database result in multiple MongoClient instances preventing caching in those scenarios.
PR: https://github.com/mongodb/mongo-spark/pull/127
PR: https://github.com/mongodb/mongo-spark/pull/129