VictoriaMetrics/app/vlselect/logsql
Aliaksandr Valialkin 657988ac3a
app/vlselect: consistently reuse the original query timestamp when executing /select/logsql/query with positive limit=N query arg
Previously the query could return incorrect results, since the query timestamp was updated with every Query.Clone() call
during iterative search for the time range with up to limit=N rows.

While at it, optimize queries, which find low number of matching logs, while spend a lot of CPU time for searching
across big number of logs. The optimization reduces the upper bound of the time range to search if the current time range
contains zero matching rows.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6785
2024-09-08 14:32:23 +02:00
..
buffered_writer.go lib/logstorage: work-in-progress 2024-05-14 03:05:03 +02:00
hits_response.qtpl app/vlselect/logsql: add optional fields_limit query arg to /select/logsql/hits HTTP endpoint 2024-06-28 03:08:40 +02:00
hits_response.qtpl.go app/vlselect/logsql: add optional fields_limit query arg to /select/logsql/hits HTTP endpoint 2024-06-28 03:08:40 +02:00
logsql.go app/vlselect: consistently reuse the original query timestamp when executing /select/logsql/query with positive limit=N query arg 2024-09-08 14:32:23 +02:00
logsql.qtpl lib/logstorage: work-in-progress 2024-05-24 03:06:55 +02:00
logsql.qtpl.go lib/logstorage: work-in-progress 2024-05-24 03:06:55 +02:00
query_response.qtpl app/vlselect/logsql: sort query results by _time if their summary size doesnt exceed -select.maxSortBufferSize 2023-06-21 01:11:25 -07:00
query_response.qtpl.go app/vlselect/logsql: sort query results by _time if their summary size doesnt exceed -select.maxSortBufferSize 2023-06-21 01:11:25 -07:00
stats_query_range_response.qtpl app/vlselect: add /select/logsql/stats_query_range endpoint for building time series panels in VictoriaLogs plugin for Grafana 2024-09-07 00:41:47 +02:00
stats_query_range_response.qtpl.go app/vlselect: add /select/logsql/stats_query_range endpoint for building time series panels in VictoriaLogs plugin for Grafana 2024-09-07 00:41:47 +02:00
stats_query_response.qtpl app/vlselect: add /select/logsql/stats_query endpoint, which is going to be used by vmalert 2024-09-06 23:06:43 +02:00
stats_query_response.qtpl.go app/vlselect: add /select/logsql/stats_query endpoint, which is going to be used by vmalert 2024-09-06 23:06:43 +02:00