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

Allow returning documents in the same order as $in

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Operating System:
      ALL

      Description

      I often like to get documents which have IDs from an array of values using $in operator. But there is currently no way to get those documents in that same order. You have to retrieve them all to the client and sort them there. This is pretty inefficient.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-query Backlog - Query Team
              Reporter:
              mitar Mitar
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: