MongoDB card reviewmedium

What is MongoDB TTL index?

TTL indexes automatically remove documents after a specified amount of time. They are useful for temporary data such as sessions, logs, tokens, and cache records.

JB

Jeevan Bhargav

Audited by Creator

This answer is calibrated for technical interviews. Verify benchmarks in local sandboxes before deploying.