I'm currently learning a framework that supports Migrations.
My question is: what is the main benefit for using migrations?
Why don't we just use a database adminstration tool to add/drop/alter tables and to do other operations directly? Or why not to just export my .sql file and my team import it in their databases?
Migrations are helpful because they allow database schemas to evolve as requirements change. They help developers plan, validate, and safely apply schema changes to their environments.
Load multiple tables in parallel. By default AWS DMS loads eight tables at a time. You will see performance improvement by increasing the "Max Full Load Sub Tasks" parameter. Again it depends on the size of your replication instance and too many parallel threads running will reduce the performance.
Database migration is the process of migrating data from one or more source databases to one or more target databases by using a database migration service. When a migration is finished, the dataset in the source databases resides fully, though possibly restructured, in the target databases.
Can I replicate data from encrypted data sources? Yes, AWS Database Migration Service can read and write from and to encrypted databases.
Migrations are part of the deployment process. So the benefits of migrations (in general) are
Note, that in the beginning of a project a schema may be simple and the database small, but this will not stay this. Sooner or later (;)) you will face huge databases, that takes time to import.
Additional: A good migration usually has a "downgrade"-step in case of errors. With your approach if the deployment goes wrong you have to revert your database changes manually, which is even more error prone.
Think of them as version control for your database. It also makes deploying your changes to multiple environments (e.g. Your development environment, then your testing/production server) easy and automatable, rather than having to remember what you did in PHPMyAdmin.
It's easier to tell someone they need to migrate their DB than to have to tell them each individual change they need to make to their DB.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With