|Re: Deleting Data That Has Been Processed||Stephen Steneker||10/7/12 4:58 PM|
This question has also been discussed on StackOverflow:
As suggested in the comments there, the expected approach would be to use a deterministic boundary such as date or id values to filter rather than relying on $limit.
|Re: Deleting Data That Has Been Processed||viC||10/8/12 3:54 AM|
In case you don't have a criteria to separate them, try this:
1> rename your collection
2> Now do all your processing on the new collection.
*Warning: It doesn't work well in Sharded environments*
On Thursday, 4 October 2012 18:52:37 UTC+5:30, Toby Ho wrote: