mirror of
https://github.com/moodle/moodle.git
synced 2025-08-02 15:49:43 +02:00
MDL-75907 core: Add index on temp table to optimise stats cron
This commit is contained in:
parent
24f97edd91
commit
84eef00ed2
1 changed files with 1 additions and 0 deletions
|
@ -1632,6 +1632,7 @@ function stats_temp_table_create() {
|
|||
$table->add_index('userid', XMLDB_INDEX_NOTUNIQUE, array('userid'));
|
||||
$table->add_index('courseid', XMLDB_INDEX_NOTUNIQUE, array('courseid'));
|
||||
$table->add_index('roleid', XMLDB_INDEX_NOTUNIQUE, array('roleid'));
|
||||
$table->add_index('useridroleidcourseid', XMLDB_INDEX_NOTUNIQUE, array('userid', 'roleid', 'courseid'));
|
||||
$tables['temp_enroled'] = $table;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue