nimi
07/01/2026, 5:17 AMCREATE TABLE IF NOT EXISTS "uptime" (
"nvr_id" STRING NULL INVERTED INDEX,
"value" BIGINT NULL,
"greptime_timestamp" TIMESTAMP(9) NOT NULL,
TIME INDEX ("greptime_timestamp"),
PRIMARY KEY ("nvr_id")
)
And I want to run this query:
SELECT DISTINCT nvr_id FROM lrm_nvr.uptime;
This query takes ~16s to run (~99,194,924 rows). Is there a way to make this query faster? Or is there another query I can make?evenyag
07/02/2026, 3:22 AM