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

Avoid `getCollectionVersion` duplicate queries when committing chunk operations

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Won't Do
    • None
    • None
    • Sharding
    • 3

    Description

      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.

      Attachments

        Activity

          People

            backlog-server-sharding-emea Backlog - Sharding EMEA
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: