One of the biggest reasons that large-scale WordPress sites slow down is because their database uses the MyISAM type which isn’t optimized for speed. Convert to InnoDB for better performance.
- InnoDB has row-level locking. MyISAM only has full table-level locking.
- InnoDB has what is called referential integrity which involves supporting foreign keys (RDBMS) and relationship constraints, MyISAM does not (DMBS).
- InnoDB supports transactions, which means you can commit and roll back. MyISAM does not.
- InnoDB is more reliable as it uses transactional logs for auto recovery. MyISAM does not.
Conversion is explained in the document, but here are quick steps:
- Logon to phpMyAdmin and select the database to see the tables
- Export the database as a backup
- Sort the tables by database type
- Copy & Paste (as text) all rows that are MyIsam into the first column of Excel
- Make sure that the table names are in the first column and remove everything else
- Copy the below formula in the second column of all rows
- Copy the second column in the SQL box of phpMyAdmin and run
- Repeat step 3 and 4 as there might be an additional table now.
- Run a repair + optimize
="ALTER TABLE "&A1& " ENGINE=InnoDB;"Code language: JavaScript (javascript)
Source: https://kinsta.com/knowledgebase/convert-myisam-to-innodb/