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

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None

      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.

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

              Created:
              Updated:
              Resolved: