longer timeout in busqueda

This commit is contained in:
Roberto Alsina 2024-05-15 20:18:09 -03:00
parent 9283ee0a03
commit 3f1b41c316

View File

@ -130,7 +130,7 @@ class Handler
# } # }
if (body = request.body).nil? if (body = request.body).nil?
query = {"p": "", "g": "", a: ""} query = {"p": "", "g": "", "a": ""}
else else
query = Hash(String, String).from_json(body) query = Hash(String, String).from_json(body)
end end
@ -155,6 +155,7 @@ class Handler
if prefijo.nil? && year.nil? if prefijo.nil? && year.nil?
# Global totals # Global totals
# FIXME: SLOW
sql = %( sql = %(
SELECT total::integer, nombre SELECT total::integer, nombre
FROM totales FROM totales