5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 15:21: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:
f 2022-04-30 11:34:21 -03:00
parent 1962175cc6
commit 6699db8380

View file

@ -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