/plushcap/analysis/influxdata/influxdata-query-optimization-progressive-evaluation-influxdb

Optimizing Queries in InfluxDB 3.0 Using Progressive Evaluation

What's this blog post about?

InfluxDB 3.0 introduces optimized SQL queries using progressive evaluation, which significantly improves "most recent values" query performance. This technique is currently only available for SQL queries with the clause ORDER BY time DESC or ASC and has certain limitations such as expressions, aliases, and aggregations on the SELECT clause. Progressive evaluation can be identified in the query plan by the presence of ProgressiveEvalExec. The data organization in InfluxDB 3.0 consists of four stages: C (not yet persisted), L0 (newly ingested and persisted), L1 (compacted files), and L2 (beyond the scope of this topic). Progressive evaluation benefits queries by fetching data from non-overlapped files progressively, reducing CPU time and potentially improving latency for other queries on the system.

Company
InfluxData

Date published
Nov. 14, 2024

Author(s)
Nga Tran

Word count
1753

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.