Skip to content

One query running for all the pages and making many them load slow for large data #4962

@Imran92

Description

@Imran92

Steps to Reproduce

  1. Create a large number of courses, and lessons with many students enrolled
  2. Browse the Reports pages (or any other page)
  3. Monitor the queries generated
  4. See a query getting generated for all of them, making many of them load slow (As attached in the screenshot below)

Screenshot / Video

This query adding more than two seconds to the loading time of Students and Courses pages under Reports. For ~3 Courses, 300 lessons each and ~1200 students enrolled to all of them. The page takes about 4 seconds to load, and this query is responsible for half of it.
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions