Uploaded image for project: 'Spark Connector'
  1. Spark Connector
  2. SPARK-441

Improve MongoClientCache

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 10.4.1
    • 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

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: