-
Improvement
-
Resolution: Deferred
-
Critical
-
2.1.1, 2.7.2
-
MOODLE_21_STABLE, MOODLE_27_STABLE
-
Supposed you want to write a query like
DELETE FROM table WHERE id IN (SELECT ... ) |
-- or
|
UPDATE table SET field = value WHERE id IN (SELECT ... ) |
while that is simple to understand, it turns out that database handle that sort of query very badly. (See, for example, MDL-29520 and MDL-32616.)
The bad news is that there is no standard SQL syntax that works will in all our supported databases, therefore we need a new $DB-> method called delete_records_subselect or delete_records_join_select or something like that, to replace all the one-off hacks we have had to do in those places.
- has a non-specific relationship to
-
MDL-32616 Badly performing MySQL queries when editing questions
- Closed
- has been marked as being related by
-
MDL-79392 Slow quiz statistics query
- Open
-
MDL-51191 Failure to upgrade to 2.8 because of a very slow SQL query in assign module steps
- Closed
-
MDL-29595 Replace todos in question/engine/datalib.php once the new DB API from MDL-29589 is available
- Open
- will be (partly) resolved by
-
MDL-69687 Improve removal of course module completion data
- Closed
- will help resolve
-
MDL-29520 Badly performing MySQL queries connected to questions
- Closed