Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.2.5, 3.3.2, 3.6.5, 3.7.1, 3.8.3, 3.9
-
MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
-
MOODLE_310_STABLE
-
Description
When tokens are looked up during a web service call the query used to check them performs a full table scan on the external_tokens table.
Adding an index to the token field would avoid this.
While it does not appear to be adding a large overhead right now, I can imagine that as the popularity of the Mobile app increases it could eventually start to become an issue for large sites.
It would benefit queries in: