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:
ALTER TABLE `counts_table` ADD INDEX `counts_table_idx_timestamp` (`timestamp`);
SELECT
fasthll(counts_table.my_hll),
distinctcounthll(counts_table.my_hll)
FROM
counts_table
WHERE
counts_table.timestamp >= 1500768000