馃悰 [Bug] reports query is too expensive and times out often
Created by: Tirokk
Authored by mattwr18 Closed
馃悰 Bugreport
The reports query fetches all reports, which have nested FiledReports
, nested reviews
, nested resources
, which have nested attributes as well.
This makes it an extremely expensive request. Leading to time outs.
Steps to reproduce the behavior
- log in as admin
- go to
/moderation
- see if the reports load
- ...
- Profit
Expected behavior
We'd expect that reports
would be shown
Additional context
@roschaefer suggested we could do eager
loading of certain resources.
We could also try pagination