Skip to content

Possible to drop old ops from the oplog to save space? #25

Closed
@devongovett

Description

@devongovett

Is it possible to drop old operations from the oplog to free up database space after some specified timeout? We don't really need a full history of all operations after a few days (right?), and when operations are generated for every keypress pretty much, the database can grow very fast.

I tried using a Mongo ttl index on the ops but that doesn't work: We get a Missing oplog error from the redis driver when both redis and mongo have been cleared. Do we only need to keep around the latest operation (or 10 say), or is there a better solution? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions