by SmokeyHamster · 6y ago · 0 comments
I was using MySQL at the time, and did a performance comparison of how long it took each database to dump and load a snapshot of a 100GB database.
MySQL took 3 days.
PostgreSQL took 30 minutes.
I posted on a MySQL forum asking why the drastic difference, and they tried to hand-wave it away by saying I had a lot of indexes. Well yeah, databases have indexes. I shouldn't expect my MySQL database transfers to be quick if it has an index? Features shouldn't cripple the application for routine tasks.
[In Postgres] if we have a table with a dozen indexes defined on it, an update to a field that is only covered by a single index must be propagated into all 12 indexes to reflect the ctid for the new row.[1]
[1] https://eng.uber.com/postgres-to-mysql-migration/