Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-6766

Reduce load time when querying users table

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: High High
    • moodle.org
    • MDLSITE Sprint 2023-I1.4, Community Sprint 2024-I4.3, Community Sprint 2025 I1 M & P, Community Sprint 2025-I1.1, Community Sprint 2025-I1.2, Community Sprint 2025-I1.3

      There are some pages, like the course participants and the list of site users that take a long time to load.

      Likely the cause is the number of records in the user table, more than 4M, being about 1M deleted users.

      The first approach was to delete the records of the deleted users, but the problem with dropping the records is that there could be a lot of queries joining the "user" table, which could lead to content loss (orphan) or errors due to a not-found record.

            vmdef Victor Déniz Falcón
            vmdef Victor Déniz Falcón
            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.