Michael Spector
Michael Spector

Reputation: 37019

Is there a way to listen for automatic removals from a MongoDB capped/TTL collections?

Is there a way to get documents that were automatically removed during a cleanup operation from a capped or TTL collection in MongoDB?

Thanks!

Upvotes: 1

Views: 198

Answers (1)

user3973
user3973

Reputation: 361

No.

(I believe you will find the _id's -- not the whole document though -- of the deleted documents in the replication oplog local.oplog.rs for ttl collections. But not for capped collections.)

Upvotes: 1

Related Questions