Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-46826

forum_discussions requires index on course field

XMLWordPrintable

    • MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • wip-MDL-46826-master
    • Hide

      repeat testing from MDL-31089, you can limit it to test 2 and test 6 only (group and no-group modes)
      master only: verify upgrade to forum version 20140815 works and the index on forum_discussion (course) is created.

      Show
      repeat testing from MDL-31089 , you can limit it to test 2 and test 6 only (group and no-group modes) master only: verify upgrade to forum version 20140815 works and the index on forum_discussion (course) is created.

      Occasionally, queries pop up which use forum_discussions.course as the filter condition, and join forum_posts and friends to fetch some data.

      This does not work very well as there is no index on the course field, so it results in quite poor queries.

      The latest case seems to be MDL-31089 which has made forum_print_overview a very serious bottleneck, found when testing 2.5 vs 2.7 performance.

      An index should be added to the course field to prevent these problems.

            marina Marina Glancy
            tlevi Tony Levi
            Ankit Agarwal Ankit Agarwal
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Andrew Lyons Andrew Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.