mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-10 16:00:33 -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
e6c083f809
commit
734b98edbb
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