-
Bug
-
Resolution: Won't Fix
-
Minor
-
None
-
2.1
-
MOODLE_21_STABLE
Currently the indexes in the log table are not very good.
- First of all, there are none (or almost none) queries to the log table that don't limit the result by time. So, time should be in any index. In maybe worth indexing not the full value of time but just first 6-7 digits which would result in hours-or-days chunks. In this case the size of index will decrease significantly but the performance will remain.
- Index on only one field action is useless
- when generating reports action is often queried as %view%, %add%, etc., which makes the action field in index useless as well. In order to use the indexed action pattern should look like view%, add% (at the moment probably not possible)
Probably there are more issues. Existing queries in the code should be analyzed.
There also should be strict guidelines how to form the value of action. In order to properly use the indexed action the verb (view, add, update, ...) should be the first word. At the moment there are also actions like 'templates view', 'field add', and so on.
- has a non-specific relationship to
-
MDL-44998 Review indexes in standard log table
-
- Closed
-