PERF: Remove total for time to first response report. (#17082)
The query is very inefficient without any constraints on large sites and the average of all time to first response since the beginning of time is not useful as well.
This commit is contained in:
parent
f313276966
commit
0ae7b43018
|
@ -17,8 +17,6 @@ module Reports::TimeToFirstResponse
|
|||
report.data << { x: r['date'], y: r['hours'].to_f.round(2) }
|
||||
end
|
||||
|
||||
report.total = Topic.time_to_first_response_total(category_id: category_id, include_subcategories: include_subcategories)
|
||||
|
||||
report.prev30Days = Topic.time_to_first_response_total(start_date: report.start_date - 30.days, end_date: report.start_date, category_id: category_id, include_subcategories: include_subcategories)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue