Details
-
New Feature
-
Resolution: Duplicate
-
Minor - P4
-
None
-
None
-
None
Description
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} );
Attachments
Issue Links
- duplicates
-
SERVER-714 Allow findandmodify to retreive more than 1 record at a time
-
- Open
-