Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-15171

Investigate changes in SERVER-62554: Add orphans info in `collStats` aggregation stage output

      Original Downstream Change Summary

      A new field `orphanCount` has been added to the collStats aggregation stage output which represents the number of orphan documents in a collection

      Description of Linked Ticket

      With the introduction of ranges, chunks distribution will become much less meaningful to evaluate whether a collection is balanced or not.

      Objective of this ticket is to return orphans as part of the collStats aggregation stage's output so that users can rely on some new metric to evaluate the balancing status.

      To get the actual size of a collection on a shard, some example of metrics may be dataSize - orphansSize or countDocuments - countOrphans.

            Assignee:
            jocelyn.mendez@mongodb.com Jocelyn Mendez
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              2 years, 4 weeks, 3 days ago