Yeah there are limitations to capped collections (unfortunately), but
they're still great for operations like logging. I guess the question
is 'Are there enough people using capped collections to make it worth
the effort?' There are benefits to having all your db interactions
running through the same library...and being able to create a capped
collection from Mongoose would be a plus.
As it is currently, you can work with capped collections fine (minus
deletes and most updates), but Mongoose still generates an _id for the
document, where the default in a capped collection is to not generate
an _id.
Who else is using capped collections?
On Sep 8, 11:22 pm, Aaron Heckmann <
aaron.heckm...@gmail.com> wrote:
> Capped collections are sooort of supported. You'd have to create the capped
> collection in your mongodb shell first though. The thing about them them is
> that they don't support all the functionality that mongoose expects which
> can lead to weird behavior...
>
> - You may update the existing objects in the collection. However, the
> objects must not grow in size. If they do, the update will fail. (There are
> some possible workarounds which involve pre-padding objects; contact us in
> the support forums for more information, if help is needed.)
> - The database does not allow deleting objects from a capped collection.
> Use the drop() method to remove all rows from the collection.
> Note: After the drop you must explicitly recreate the collection.
>
> On Thu, Sep 8, 2011 at 1:01 AM, Nick Daugherty <
develo...@sentientmatter.com