Downsampling
Example: GROUP BY Aggregation
GROUP BY Aggregationcr> SELECT
device_id,
max(value),
avg(value),
min(value)
FROM
measures
GROUP BY
device_id
ORDER BY
1 DESC;
+-----------+------------+-------------------+------------+
| device_id | max(value) | avg(value) | min(value) |
+-----------+------------+-------------------+------------+
| 4 | 10000 | 5003.748816285036 | 0 |
| 3 | 10000 | 5005.297395430482 | 0 |
| 2 | 10000 | 5002.940588080021 | 0 |
| 1 | 10000 | 5002.216030711031 | 0 |
+-----------+------------+-------------------+------------+
Downsampling for Faster Queries
Downsampling with %_docid
Downsampling with DATE_BIN (Time Bucketing)
DATE_BIN (Time Bucketing)Downsampling with LTTB
Summary: Choose the Right Strategy
Use Case
Technique
Trade-off
Last updated

