-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
3.11.11, 4.1
-
None
-
MOODLE_311_STABLE, MOODLE_401_STABLE
Essentially, this operation knocked our site completely offline.
Attached screenshot shows 'explain' for main query.
Our files table contains over 12 million rows and is being searched more than once with no index. As the files table is critical, locking the table for the time needed to do this effectively destroys the site. DB connections max out and require a manual restart.