Solution skill
Atlas: tier old data to Online Archive automatically
Complete solution
Online Archive moves cold data to cheap queryable storage by rule. Define the date criteria, verify what gets archived, and keep querying it. Not the full reference manual.
TL;DR: Online Archive moves cold data to cheap queryable storage by rule. Define the date criteria, verify what gets archived, and keep querying it. Use a custom criteria query for more complex rules. Rules - The date field must exist on the documents you want archived and be a real date type.
The fix
- Atlas UI: cluster, Online Archive, Add Archive. Pick the database and collection.
- Define the archive rule: a date field and an age threshold (e.g. archive documents where
createdAtis older than 180 days). Use a custom criteria query for more complex rules. - Choose the schedule and the partition fields if you want them.
- Let the first run complete, then check the archived count against your expectation.
- The date field must exist on the documents you want archived and be a real date type. Strings that look like dates will not match.
- Archived data stays queryable through the same connection (it federates), but queries over archived data are slower. Keep hot queries on hot data by choosing the threshold from actual access patterns.
- Pausing the archive stops new data from moving; it does not bring data back. Reversing needs a restore-style operation, so get the rule right in staging first.
- Set an alert on archive job failures; a silently stuck rule means unbounded hot growth.
When to use this
- This covers exactly what the title says: Atlas.
- You are setting this up for the first time, or auditing an existing setup.
- You want the key gotchas in one place before you start.
When not to use this
- You are doing a different workflow with Atlas; these steps are specific to the title above.
- You need the full reference docs; this is the short path, not the manual.
Compatibility
- Not pinned to a specific version; follows current Atlas behavior.
Evidence
Online Archive rule configuration (date criteria, scheduling, queryability) per https://www.mongodb.com/docs/atlas/online-archive/manage-online-archive/, verified 2026-09-26.
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_CQND2tPEn4YvPdN0--hAew" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Atlas: tier old data to Online Archive automatically <span>— Vectle</span></a>