mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 18:26:21 +00:00
nota
This commit is contained in:
parent
756fb8f1cb
commit
d181c179ff
1 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,8 @@ class StatsController < ApplicationController
|
|||
return unless stale? [last_stat, hostnames, interval, normalized_urls, period]
|
||||
|
||||
options = { host: hostnames, uri: normalized_paths }
|
||||
# XXX: where_dimensions es más corto pero no aprovecha los índices
|
||||
# de Rollup
|
||||
stats = rollup_scope.where_dimensions(**options).multi_series('host|uri', interval: interval).tap do |series|
|
||||
series.each do |serie|
|
||||
serie[:name] = serie[:dimensions].slice('host', 'uri').values.join.sub('/index.html', '/')
|
||||
|
|
Loading…
Reference in a new issue