mysql - How to covert Innodb table to myisam tables in minimum downtime -
we have 250gb mysql innodb databases, performance reason have convert in myisam on production, optimal solution in minimum downtime
i'd imagine like:
- create myisam copy of table.
- add/modify triggers on original table "sync" changes copy.
- incrementally copy old data original table copy; update , delete triggers should keep copied data date. (depending on specific table's structure , how incrementally copying, insert trigger may unnecessary or counter productive).
- drop foreign keys referencing original table.
- rename original table , rename copy original table's name.
it won't fastest process, can't see having less downtime renaming couple tables.
Comments
Post a Comment