-
Sub-task
-
Resolution: Fixed
-
Blocker
-
2.0.3, 2.1, 2.4
-
MySQL
-
MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_24_STABLE
-
MOODLE_24_STABLE
-
MDL-30643_master-log-speed -
Daily statistics generation is really slow because SQL queries are not optimized properly. The propblem occurs principaly when you have a lots of entries in the log table (150 000 and more per day). We also observed that the server is responding slowly for users in Moodle while the daily statistics generation is running (Every inserts in log table take about 40-50 seconds).
December 5th cron log from our server
Running daily statistics gathering, starting at 1322974800:
|
................ finished until 1323061200: lundi 5 décembre 2011, 00:00 (in 6872 s)
|
...completed 1 days of statistics.
|
- caused a regression
-
MDL-46773 Midnight failure in test_statslib_cron_daily
- Closed
- has a non-specific relationship to
-
MDL-36410 Extend our DB API to support temporary tables usage to allow for creation of more efficiently performing but not often components
- Closed
- has been marked as being related by
-
MDL-18484 Statistics are impossibly slow
- Closed
-
MDL-36799 Cannot generate weekly and monthly statistics reports
- Closed
-
MDL-36411 Allow asserts for phpunit tests during setUp() stage for setup failures.
- Closed
-
MDL-36416 test_statslib_get_action_names() has the hard coded actions used in logging, perhaps these could be constants in stats lib or collated somewhere
- Closed