> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>
As for which is faster, deleting from the existing collection (with or
without indexes) and copying the data you want to a new one and then
renaming, it depends on how much data. I have found when I want to
delete a large percentage of data (60%+) it works for me to do the
latter.
If you have time based data then you could even start the copy of the
data you want to save by change/insert time now, and then you might
only need a few second to switch to the new collection if you go that
route. The trickle delete is probably the easiest but has the
potential to hose the server if you do it too quickly.
I think this is going to depend on what behavior you want and how long
you want it to take.