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

Reduce loading time of large reports by counting total rows from rawdata

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 4.0.4, 4.1
    • Report builder
    • None
    • MOODLE_400_STABLE, MOODLE_401_STABLE

      If you have large reports where the SQL query executed can take 10+ seconds then currently reportbuilder will execute this query twice as it has to count the number of total rows in the report for the paging bar:

      https://github.com/moodle/moodle/blob/master/reportbuilder/classes/table/base_report_table.php#L177

      This results in the loading of the report to take 20+ seconds as it executes the slow query twice.

      We could halve the loading time by counting the number of total rows from the query which fetches the data

            Unassigned Unassigned
            alexmorris Alexander Morris
            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.