Data Archival
Archive documents for long-term storage without impacting performance.
RavenDB’s Data Archival feature is ideal for keeping historical documents while seamlessly excluding them from your active dataset. Archiving lets you retain documents for as long as needed without bloating indexes or slowing queries, keeping your active dataset small and efficient.
Once a document is archived:
- Storage is optimized: Documents are compressed to reduce disk usage.
- Performance is preserved: Documents are excluded from indexes and subscriptions by default.
- Data remains accessible: Documents remain fully retrievable and can be unarchived at any time.
Your active dataset stays lean, queries run faster, and indexes remain smaller - while you can still load any archived document whenever you need it.
Use cases
- Keep your active dataset lean while preserving older records.
- Archive completed orders, outdated logs, or past events that rarely need to be queried.
- Retain regulatory or audit data for long-term storage without impacting day-to-day database performance.
Technical documentation
Refer to the technical documentation to learn how to enable the data archival feature, schedule individual documents for archiving, understand what is (and isn't) archived, discover how to unarchive documents, and see how other RavenDB features behave when working with archived data.