In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
CREATE INDEX historico_35387104_idx_clase_registro ON "telemetria_data"."historico_353871042915279" ("clase","registro");
SELECT
max(telemetria_data.historico_353871042915279.registro)
FROM
telemetria_data.historico_353871042915279
WHERE
telemetria_data.historico_353871042915279.clase = 40
AND telemetria_data.historico_353871042915279.registro > now() - INTERVAL '5 days'