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

Expand on the capabilities of "limit" to be able to limit each branch/clause of a $or & $in independently of one another

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • None

    Description

      Allow for the different clauses in $or & $in queries to limit their respective result sets.

      I.E. something like

      find ( { a : {$in : [ val1, val2, val3, val4, val5] } }).limit(5)

      should allow me to have an option to get 5 results back for each value in the array. and then maybe set a hard limit of 25 to cap my total resultSet.

      Attachments

        Activity

          People

            Unassigned Unassigned
            osmar.olivo Osmar Olivo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: