Blog79.3K views990 votes0 replies2,218 following
MongoDB TTL Indexes: Let the Database Delete Your Expired Data (With Caveats)
MongoDB TTL indexes delete expired documents for you — no cron job required. Here's how they work, a working configuration, and the operational caveats that matter before you rely on them.