Document expiration?

765 views
Skip to first unread message

Phillip B Oldham

unread,
Aug 5, 2009, 10:56:33 AM8/5/09
to mongodb-user
One of the things that drew me to mongo was this line in the FAQs:

"The goal is for Mongo to be an alternative to an ORM/memcached/mysql
stack."

Among the many benefits of memcached is that records can expire by
themselves. Will mongo ever have built-in document expiration a la
memcached?

Michael Dirolf

unread,
Aug 5, 2009, 10:59:32 AM8/5/09
to mongod...@googlegroups.com

Phillip B Oldham

unread,
Aug 5, 2009, 11:06:35 AM8/5/09
to mongodb-user
On Aug 5, 3:59 pm, Michael Dirolf <m...@10gen.com> wrote:
> Check out capped collections:http://www.mongodb.org/display/DOCS/Capped+Collections

Thanks, but I was thinking more along the lines of memcached's "ttl"
property. Having documents which have a "lifetime" would be immensely
useful.

Michael Dirolf

unread,
Aug 5, 2009, 11:33:04 AM8/5/09
to mongod...@googlegroups.com

Ah, okay - this is something that a couple of people have asked for
already. I've opened a jira for it here:

http://jira.mongodb.org/browse/SERVER-211

so feel free to watch/vote/comment on that. This is something that you
can implement at the application level now, but to be supported really
well there are still some changes we'd need to make to the server.

Reply all
Reply to author
Forward
0 new messages