Gabriel Mocan
05/05/2023, 11:17 AMnet
and inet
columns will yield better performance as they are the search needle in this query?
⢠This query runs extremely fast on QuestDB UI (average of 500ms including network delay), but in Grafana is taking around 10 secs. Iām wondering if this difference is only āplot timeā of points on chart by Grafanaā¦
SELECT
$__time(timestamp),
"as" || ' via ' || "host" AS metric,
sum(value)/($__interval_ms/60000) AS "bps"
FROM "bytinDstNet"
WHERE
$__timeFilter(timestamp) AND
net in($net) AND
inet in($inet)
SAMPLE BY $__interval FILL(0);
Andrey Pechkurov
05/05/2023, 12:14 PMGabriel Mocan
05/05/2023, 12:57 PM