-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: 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.
- is duplicated by
-
SERVER-8566 Create a "limit per match" option for $in queries
- Closed