mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
perf: include survey items with measures to avoid n+1 queries when scoring by student/teacher survey items
This commit is contained in:
parent
f6e4fd1ba9
commit
518bc29f0f
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ class OverviewController < SqmApplicationController
|
|||
end
|
||||
|
||||
def measures
|
||||
@measures ||= Measure.all.includes(%i[scales admin_data_items category subcategory])
|
||||
@measures ||= Measure.all.includes(%i[scales admin_data_items category subcategory survey_items])
|
||||
end
|
||||
|
||||
def subcategories
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue