-
Improvement
-
Resolution: Won't Fix
-
Minor
-
None
-
3.0.2
-
PostgreSQL
-
MOODLE_30_STABLE
-
MDL-52801_Feature_group_concat -
-
problem_000013 class from admin/tool/health/index.php sends an unoptimal database query which makes N*M scans in the database (N,M - number of rows in
{question},
{question_multianswer}accordingly) which is very time-consuming process.
TO REPRODUCE:
create 500k records in both tables and try to run
/admin/tool/health/index.php script
WHAT EXPECTED:
linear complexity at least. Execution time < 30 seconds
WHAT HAPPENED:
N^2 complexity. Execution time > 900 seconds