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

forum_discussions requires index on course field

    XMLWordPrintable

Details

    • 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.

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              tlevi Tony Levi
              Ankit Agarwal Ankit Agarwal
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Andrew Lyons Andrew Lyons
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8/Sep/14