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

SQL DISTINCT operator on array fields

    XMLWordPrintableJSON

Details

    • Query

    Description

      consider the following document:

      {a:[1,2,2,2,3,3,4,4,5]}

      There isn't an efficient way of getting the unique values of the field "a".
      This applies to, the $project aggregation operator and a find query.

      Attachments

        Activity

          People

            backlog-server-query Backlog - Query Team (Inactive)
            vjalilov@rivetlogic.com Vagif Jalilov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: