Merge pull request #11161 from influxdata/enhancement/improve-meta-query-speed
Improve meta query for tagspull/11169/head
commit
041161a646
|
@ -38,11 +38,15 @@ async function findKeys(
|
|||
|
||||
const query = `from(bucket: "${bucket}")
|
||||
|> range(start: -${SEARCH_DURATION})${tagFilters}
|
||||
|> drop(columns: ["_time", "_start", "_stop", "_value"])
|
||||
|> keys()
|
||||
|> group()
|
||||
|> distinct()
|
||||
|> keep(columns: ["_value"])${searchFilter}${previousKeyFilter}
|
||||
|> filter(fn: (r) =>
|
||||
r._value != "_time" or
|
||||
r._value != "_start" or
|
||||
r._value != "_stop" or
|
||||
r._value != "_value")
|
||||
|> sort()
|
||||
|> limit(n: ${LIMIT})`
|
||||
|
||||
|
|
Loading…
Reference in New Issue