You can choose your operating systems favorite tool and your favorite
language to write those scripts.
Another option for expiring documents is to use a capped collection
and always ignore old docs by using a query with a time based filter.
Soon a TTL option will be added.
On Thu, Mar 24, 2011 at 7:37 AM, 玉 付 <freese...@gmail.com> wrote:
> We need to remove expired documents , or do mapReduce in 0:0:0 everyday
>
> --
> 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.
>
>
2011/3/24 玉 付 <freese...@gmail.com>:
> Yes,I agree with you.
> But ,see http://groups.google.com/group/mongodb-user/browse_thread/thread/ba76644314ce1cfc
> I cannot run scheduled job in java application, so want to run it on
> mongodb server.
>
> Just found that I could scripte the shell , "./mongo localhost:27015/
> test test.js"
Yep, that is an option as well.