Subdocument expiration

Hi team,

Is there a way to achieve subdocument expiration? I know we can set document level TTL, which would expire the entire document.


You could possible use the Eventing Service and set up timers to perform the subdocument mutation, not that timers are +/- 7 seconds and not wall clock accurate and timers can have an overhead of a) a maximum of 6 buckets ops (3 for creation and 3 for deletion) and b) about 832 bytes per timer in this particular use case.

I could give more information or gin up a sample if you give a sample document and explain what you want to expire in it as well as the number of mutations per second and the number of outstanding docs that have a pending subdocument expiration that you expect.