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

\block_manager::load_blocks() does not use index

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 3.11.6
    • Blocks, Performance
    • None
    • MOODLE_311_STABLE

      Apparently, the query for \block_manager::load_blocks() uses full table scans which can take some time, especially if the block_instances table grows too large.

      The performance of the query for \block_manager::load_blocks() can be improved using the parentcontextid-showinsubcontexts-pagetypepattern-subpagepattern index. This has been demonstrated by mudrd8mz for the moodle.org site in MDLSITE-6601.

      Though David's temporary fix serves as a working proof of concept for moodle.org, we need to find a way to address this issue in a cross-database-compatible way.

            nobody Nobody (Inactive)
            jpataleta Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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