We have to archive 5000K rows.
1. Insert from MainTable to ArchiveTable and then delete those data from MainTable
( Of course will do this in batches)
2. Delete the data from MainTable and create trigger on it to insert into ArchiveTable from deleted.
Which method is good?