I have a MariaDB database with 1TB of data that I need to delete old records from.
The total deletion numbers will left the database with less than half of it's actual size so i thought that could be simpler if i migrate to a new RDS, using DMS and its filter functionality to copy only the records that i need and also replicate ongoing changes.
The second reason to migrate is because i can't "give back" the free storage space after deletion to reduce costs, so amazon suggests to migrate to a smaller RDS.
Considering this scenario, some doubts emerged.
1 - Its said that DMS does not create all the table objects. Do i have to worry about the auto increment IDs? I mean, DMS will filter out records from the beggining of the sequence while migrating, so the DB will keep incrementing from the last ID when inserting new records?
2 - When exactly do I need to create the constraints, FKs and other non created objects?
3 - Not all tables will have records being filtered. Is it better to separate them in different migration tasks?
4 - I've never migrated anything using this tools. Is there any kind of hidden trap that i need to worry about?
OBS: The migration will be from AND to MariaDB