VictoriaMetrics/app/vlselect/logsql
Aliaksandr Valialkin cad236003b
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:34:46 +02:00
..
buffered_writer.go lib/logstorage: work-in-progress 2024-05-14 03:06:02 +02:00
hits_response.qtpl app/vlselect/logsql: add optional fields_limit query arg to /select/logsql/hits HTTP endpoint 2024-06-28 03:10:05 +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:10:05 +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:34:46 +02:00
logsql.qtpl lib/logstorage: work-in-progress 2024-05-24 03:07:07 +02:00
logsql.qtpl.go lib/logstorage: work-in-progress 2024-05-24 03:07:07 +02:00
query_response.qtpl app/vlselect/logsql: sort query results by _time if their summary size doesnt exceed -select.maxSortBufferSize 2023-07-06 21:25:00 -07:00
query_response.qtpl.go app/vlselect/logsql: sort query results by _time if their summary size doesnt exceed -select.maxSortBufferSize 2023-07-06 21:25:00 -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:44:34 +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:44:34 +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:00:58 +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:00:58 +02:00