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

Allow returning documents in the same order as $in

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Query
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: