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

Missing aggregation stages

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: manual, Server
    • Labels:
      None
    • Last comment by Customer:
      true
    • Story Points:
      0.1
    • Sprint:
      ServerDocs2020: Apr20 - Apr27, ServerDocs2020: Apr27 - May4, ServerDocs2020: May4 - May11, ServerDocs2020: May11 - May18, ServerDocs2020: May18 - May25, ServerDocs2020: May25 - Jun1

      Description

      Description

      Hi!

      This page https://docs.mongodb.com/manual/reference/operator/aggregation/sort/#sort-operator-and-performance has a list of operators that should be used before using `$sort` at the bottom section of the page, namely `$project`, `$unwind`, and `$group`

      Asya Kamsky pointed out that this list is incomplete, when she took a look at our in-person training, which is largely based on the documentation.

      Making this ticket to bring attention to this. Is there a definitive list that should be put on the documentation page? I would love to know, so that I can also update the in-person training accordingly.

      Thank you!

      Scope of changes

      • Investigate performance relationships between $sort and other aggregation stages in context of index usage
      • Document any missing operators
      • $sort can only use indexes if it is the first pipeline stage or if after all $match stages.

        Attachments

          Activity

            People

            Assignee:
            naomi.pentrel Naomi Pentrel
            Reporter:
            yulia.genkina Yulia Genkina
            Participants:
            Last commenter:
            Naomi Pentrel Naomi Pentrel
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Days since reply:
              2 years, 17 weeks, 1 day ago
              Date of 1st Reply: