-
Type: New Feature
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Usability
-
None
In order to easily represent a queue, it would be nice to be able to do the following:
Update the top 10 records with some value and then return those records as part of the same query.
Currently, we can utilize FindAndModify to return a single record, but it would be nice to be able to do this in batches:
jobs = db.jobs.findAndModify( {sort:
{priority:-1},
{locked: 1}, count: 10} );
- duplicates
-
SERVER-714 Allow findandmodify to retreive more than 1 record at a time
- Open