-
Bug
-
Resolution: Fixed
-
Minor
-
3.5.5, 3.6, 3.7
-
MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
MDL-65429-master -
When looking to some DB performance problems @ MDL-65069, it was detected that this query:
SELECT id, discussion, preference FROM mdl_forum_discussion_subs WHERE userid = $1 AND forum = $2 array (
|
0 => '2',
|
1 => 107,
|
)
|
Is executed 65 times in a forum/view page plenty of discussions.
Tracing down the problem... it seems that mod_foum\subscriptions::fill_discussion_subscription_cache() does not cache query misses... and that causes the same query to be executed as many times as discussions are in a page.
This should be fixed in all supported branches because they are lots of queries for nothing.
- Discovered while testing
-
MDL-65069 As a user, I want to create a new discussion without changing page, so that I can create a discussion quickly and easily.
-
- Closed
-
- has been marked as being related by
-
MDL-65430 Adding an inline form to discussion list page leads to noticeable performance problems
-
- Closed
-