Avoid `getCollectionVersion` duplicate queries when committing chunk operations

XMLWordPrintableJSON

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

      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
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: