From dca48b3d56a5e624f3268aa1e4795efd0187e1cb Mon Sep 17 00:00:00 2001
From: Yannick Warnier
+InnoDB is one of the table engines you can use in MySQL. The main advantage of InnoDB is that you can have table locking per row instead of table locking per table. This means that, if one single insert or update query is very slow and executes on a critical table in Chamilo (user, course, etc), it will lock the whole table and no other query will be able to execute, which might seriously affect the efficiency of your database. Luckily, you can change the engine for one table "on-the-fly", which allows you to effectively check whether this makes a considerable difference. Our recommendation: only do that when seeing that a "SHOW FULL PROCESSLIST" in your database client shows many "Waiting for lock on table [...]".
+
+To change these engines, just launch the following command:
+
+InnoDB Engine and table locking vs row locking
+
+ALTER TABLE course ENGINE=INNODB;
+ALTER TABLE user ENGINE=INNODB;
+ALTER TABLE session ENGINE=INNODB;
+ALTER TABLE session_rel_course ENGINE=INNODB;
+ALTER TABLE session_rel_course_rel_user ENGINE=INNODB;
+
+If used on large tables, this might take a considerable time (can take around 60s for a million rows), so try to execute at night or during lower usage periods.
+