|
|
|
|
@ -337,6 +337,19 @@ To solve this performance issue, you can execute the following query manually in |
|
|
|
|
<pre> |
|
|
|
|
ALTER TABLE user_rel_tag ADD INDEX idx_user_rel_tag_user (user_id); |
|
|
|
|
</pre> |
|
|
|
|
<br /><br /> |
|
|
|
|
In Chamilo 1.10.0 (the first version of the serie), many indexes were forgotten, so you can boost your database by adding the following indexes:<br /> |
|
|
|
|
<pre> |
|
|
|
|
alter table extra_field_values add index idx_extra_field_values (field_id, item_id); |
|
|
|
|
alter table usergroup_rel_user add index idx_usergroup_ru (group_id); |
|
|
|
|
alter table usergroup_rel_user add index idx_usergroup_ru_u (user_id); |
|
|
|
|
alter table c_student_publication add index idxstudpub_cid (c_id); |
|
|
|
|
alter table c_student_publication add index idxstudpub_uid (user_id); |
|
|
|
|
alter table c_quiz_question add index idx_cqq_cid (c_id); |
|
|
|
|
alter table c_quiz_rel_question ADD INDEX idx_cqrq_qid (question_id); |
|
|
|
|
alter table c_quiz_rel_question ADD INDEX idx_cqrq_cid (c_id); |
|
|
|
|
alter table c_quiz_answer add index idx_qa_cidqid (c_id, question_id); |
|
|
|
|
</pre> |
|
|
|
|
<hr /> |
|
|
|
|
<h2><a name="3.Indexes-caching"></a>3. Indexes caching</h2> |
|
|
|
|
One good reference: <a href="http://dev.mysql.com/doc/refman/5.1/en/multiple-key-caches.html">MySQL documentation on multiple key caches</a><br /> |
|
|
|
|
|