embedded capped collections with numeric limitation, no memory limitation

34 views
Skip to first unread message

FredO

unread,
May 24, 2012, 11:41:09 PM5/24/12
to mongodb-user
I have requirement to maintain a list of N most recent emails for
each of my account-objects.

It would be cool if there were some way to declare an embedded
collection as having a limit of N objects such that as the limit was
reached, when you add a new object the oldest object would be removed.

It would be be even cooler to be able to update the numeric limit
after the collection was created.

I would think this a common enough requirement that it would make
sense to incorporate this kind of artifact in Mongo.

Or is it there already?

Eliot Horowitz

unread,
May 27, 2012, 1:00:56 PM5/27/12
to mongod...@googlegroups.com
Nothing that works great for that currently.
If they are ordered, it would obviously easy to build on top of mongo.
> --
> 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
> See also the IRC channel -- freenode.net#mongodb

Barrie

unread,
May 29, 2012, 4:18:49 PM5/29/12
to mongod...@googlegroups.com
 I think what you're looking for is this : https://jira.mongodb.org/browse/SERVER-991

You can track and upvote the feature there. 
Reply all
Reply to author
Forward
0 new messages