mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 15:51:41 +00:00
otra vez el mismo error de hashes acumulados
hice benchmarks, generar hashes nuevos es mas rapido que duplicarlos, y eliminar las keys que no corresponden es apenas mas rapido pero con mas posibilidad de bugs
This commit is contained in:
parent
1962175cc6
commit
6699db8380
1 changed files with 4 additions and 3 deletions
|
@ -58,10 +58,11 @@ class UriCollectionJob < PeriodicJob
|
|||
# Obtener orígenes de visitas por host
|
||||
values.each do |value|
|
||||
column_name = "host|uri|#{column}"
|
||||
dimensions[column] = value
|
||||
column_dimensions = { host: host, uri: uri }
|
||||
column_dimensions[column] = value
|
||||
|
||||
rollup(column_name, beginning, **dimensions)
|
||||
reduce_rollup(column_name, beginning, **dimensions)
|
||||
rollup(column_name, beginning, **column_dimensions)
|
||||
reduce_rollup(column_name, beginning, **column_dimensions)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue