mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 21:45:37 +02:00
MDL-75907 core: Add index on temp table to optimise stats cron
This commit is contained in:
parent
24f97edd91
commit
84eef00ed2
@ -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…
x
Reference in New Issue
Block a user