Skip to content

Commit

Permalink
Documentation: Add optimization note on message_attachment index addi…
Browse files Browse the repository at this point in the history
…tion - refs BT#19984
  • Loading branch information
ywarnier committed Jul 7, 2022
1 parent 4a31a7f commit f2bf937
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions documentation/optimization.html
Expand Up @@ -256,6 +256,8 @@ <h2><a name="2.Slow-queries"></a>2. Slow queries</h2>
ALTER TABLE c_chat_connected ADD INDEX idx_course_group(c_id, to_group_id);
-- For big online exams, this index reduces the load considerably
ALTER TABLE c_quiz_question ADD INDEX idx_cqq_cidid (c_id, id);
-- If you have many messages with attachments
ALTER TABLE message_attachment ADD index idx_msgat_msgid (message_id);
</pre>
<hr />
<h2><a name="3.Indexes-caching"></a>3. Indexes caching</h2>
Expand Down

0 comments on commit f2bf937

Please sign in to comment.