Add caching layer to metrics (#17617)
This commit is contained in:
parent
8338826963
commit
b377022cf9
18 changed files with 165 additions and 55 deletions
|
@ -7,7 +7,9 @@ class Admin::Metrics::Dimension::LanguagesDimension < Admin::Metrics::Dimension:
|
|||
'languages'
|
||||
end
|
||||
|
||||
def data
|
||||
protected
|
||||
|
||||
def perform_query
|
||||
sql = <<-SQL.squish
|
||||
SELECT locale, count(*) AS value
|
||||
FROM users
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue