Improve MongoClientCache

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 10.4.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Java Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      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 Lawley
            Reporter:
            Ross Lawley
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: