Database Archiving
Moving historical rows and tables out of a production database into an archive to control database growth while keeping the data queryable.
What Is Database Archiving?
Production Databases Grow Every Day. Most Of The Rows They Hold Are Closed Transactions That Are Rarely Read But Must Be Kept. Database Archiving Moves Those Rows To An Archive And Removes Them From Production.
The Benefits Show Up Quickly. Queries And Batch Jobs Run Faster. Backups And Restores Take Less Time. Storage And Database Licensing Costs Fall.
The Hard Part Is Referential Integrity. An Order Row Means Little Without Its Line Items, Customer Record, And Product Data. Good Database Archiving Extracts Complete Business Entities, Not Isolated Rows, So Archived Data Still Makes Sense On Its Own.
Key Points
- Preserve Relationships. Archive Related Records Together, Along With The Reference Data Needed To Read Them.
- Select By Age And Status. Combine Rules Such As “Closed And Older Than Three Years” To Avoid Archiving Active Records.
- Validate Before Deleting. Compare Counts And Checksums So Nothing Leaves Production Until The Archive Copy Is Confirmed.
- Keep It Queryable. Users Should Reach Archived Data Through Sql, Reports, Or Application-Style Views.
- Schemas Change. The Archive Should Record The Schema Version Each Record Was Stored Under.
Database Archiving And Retention Obligations
Much Of What Sits In A Production Database Is Regulated. Financial Transactions Support Audits And Tax Filings. Customer Records Fall Under Privacy Laws. Healthcare And Insurance Records Carry Long Retention Periods.
An Archive Must Keep This Data Intact And Producible For As Long As The Rules Require. It Must Also Support Deletion Once Retention Ends. Archived Personal Data Stays Subject To Privacy Rights, So The Archive Needs To Locate And Act On An Individual’S Records When A Valid Request Arrives.
Database Archiving Vs. Related Concepts
Database Backup
Database Backup Copies The Whole Database For Recovery. It Does Not Reduce Production Size Or Make Old Data Easier To Query.
Partitioning
Partitioning Organizes Data Inside The Database. It Can Speed Up Queries, But The Data Still Lives In Production.
Application Data Archiving
Application Data Archiving Often Captures An Entire Application’S History So The System Can Be Retired, Not Just Trimmed.
Further Reading
- How Modern Data Archiving Strengthens Cloud Database Management: How Archiving Keeps Cloud Databases Lean And Less Costly.
- Why Apache Parquet Is The Preferred Format For Enterprise Data Archiving: Why Open Columnar Formats Suit Archived Database Data.
See Also
Ready to put this into practice?
See how Archon helps organizations with compliant archiving and legacy decommissioning.