mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
chore: performance fixes for response rate calculation
This commit is contained in:
parent
47cca3ce1f
commit
5b34c2257f
2 changed files with 2 additions and 1 deletions
|
|
@ -37,6 +37,6 @@ class OverviewController < SqmApplicationController
|
|||
end
|
||||
|
||||
def categories
|
||||
@categories ||= Category.sorted.includes(%i[measures admin_data_items subcategories])
|
||||
@categories ||= Category.sorted.includes(%i[measures scales admin_data_items subcategories])
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -9,4 +9,5 @@ class Category < ActiveRecord::Base
|
|||
has_many :subcategories
|
||||
has_many :measures, through: :subcategories
|
||||
has_many :admin_data_items, through: :measures
|
||||
has_many :scales, through: :subcategories
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue