I'm currently expecting for somebody to advice me on the process which I'm gonna take forward for DB archiving.
I've database (DB-1) which has 2 very large tables, one table having 25 GB of data and another is 20 GB of data. Which cause major performance issues even I have indexes.
So, we considered to archive the old data with the below process,
- Clone a new database (DB-2) from existing database (DB-1).
- Delete the old data from DB-1, so it will have only the last 2 years records. In case If I need old data can connect DB-2.
- Every month should move an old data from DB-1 to DB-2, and delete the moved rows from DB-1.