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

Allow returning documents in the same order as $in

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • None
    • Query
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: