Use move semantic to avoid copying all chunks in createCollection coordinator

XMLWordPrintableJSON

    • Sharding EMEA
    • Fully Compatible
    • v7.1, v7.0, v6.0, v5.0, v4.4
    • Sharding EMEA 2023-10-02
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In the createCollection coordinator we accidentally copy all chunks after we serialize them. To avoid this copy we could simply use move semantic.

      While in versions 6.0+ this is not particularly problematic because we usually do not have a huge number of chunks, in previous versions (<= 5.0) the number of chunks could be very high, on the order of millions.

            Assignee:
            Tommaso Tocci
            Reporter:
            Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: