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

Use move semantic to avoid copying all chunks in createCollection coordinator

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

      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@mongodb.com Tommaso Tocci
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: