Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-62672

Avoid `getCollectionVersion` duplicate queries when committing chunk operations

    • Sharding EMEA
    • Fully Compatible
    • Sharding EMEA 2022-12-12, Sharding EMEA 2022-12-26
    • 3

      The getCollectionVersion method performs a query on config.collections before getting the version.

      When committing chunk operations, the call is preceded or followed by the exact same query (e.g. when committing a merge).

      Objective of this ticket is to optimize the flow by allowing passing a CollectionEntry to the method in order to avoid executing the same query two times.

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: