High-speed migration via rename table?
-
I discovered the migration code shardb uses copies the full table into memory and then writes it again to the new database.
This might be so it can work across servers and less likely for old mysql that doesn’t have rename table, but for installs that are completely on the same single server it would be radically faster by like minutes vs hours to use mysql’s rename table.
Copying via php also has the problem of really large tables that exceed php/wordpress memory size, even when radically increased since the current script tries to do it in one pass.
Working on some code, will share later if anyone is interested.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘High-speed migration via rename table?’ is closed to new replies.