Add info about c_item_property and extra_field_values tables optimization for deleting users

pull/2729/head
Yannick Warnier 8 years ago
parent 6d230e6f23
commit bdb0adb1b6
  1. 8
      documentation/optimization.html

@ -205,10 +205,16 @@ ALTER TABLE c_lp_item_view ADD INDEX idx_clpiv_c_i_v (c_id, id, view_count);
<pre>
CREATE INDEX idx_accessurs_sid ON access_url_rel_session (session_id);
</pre>
And finally, if you have lots of gradebook stuff, add this
If you have lots of gradebook stuff, add this
<pre>
ALTER TABLE gradebook_result ADD INDEX idx_gb_uid_eid (user_id, evaluation_id);
</pre>
If you have to delete a lot of users, you'll realize deleting users is a slow operation.
Using the following queries might help:
<pre>
ALTER TABLE extra_field_values ADD INDEX idx_efv_item (item_id);
ALTER TABLE c_item_property ADD INDEX idx_cip_lasteditu (lastedit_user_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.6/en/multiple-key-caches.html">MySQL documentation on multiple key caches</a><br />

Loading…
Cancel
Save