About InnoDB | |
InnoDB is a storage engine for the databases supported by Tiki: MariaDB, MySQL and Percona Server for MySQL. Support for InnoDB was introduced in Tiki8 (2011). InnoDB is the default storage engine since Tiki18 (2017) and MariaDB 10.2 (2017). Starting in 2024 Tiki28, it is also the default for the Unified Index InnoDB provides several benefits over the MyISAM engine. It offers better crash recovery. Additionally, InnoDB supports (multi-statement) transactions and row-level locking, i.e. updates, inserts and deletes will no longer lock the whole file/table. It also supports referential integrity by the use of foreign keys. But these features are currently not used by vanilla Tiki. Customized Tiki versions could take advantage of these features, e.g. if the tiki_pages table is linked from a custom table. |
Installing with InnoDB | |
When creating the Tiki database, the user can choose to use MyISAM or InnoDB. Once the choice is made, Tiki will remember the selection. |
Migrating existing MyISAM databases | |
|
Supporting InnoDB | |
Installs | |
Rules
After the main install script (tiki.sql), the installer will run tiki_myisam.sql or tiki_innodb.sql for the respective installation. tiki_myisam.sql installs the fulltext indexes. |
Upgrades | |
When adding an engine-dependent patch, the engine-independent SQL statements must be put in the YYYYMMDD_description_tiki.sql file. The engine-dependent parts must be put in an accompanying PHP file, defining a post_YYYYMMDD_description_tiki function.
Copy to clipboard
and a PHP file specifying the engine dependent part Copy to clipboard
|
Continuous Integration | |
The Tiki CI has sql-engine-conversion section which leverages doc/devtools/check_sql_engine_conversion.php See also: |