You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Queries matching a single tag value using regexp :
SELECT myaggregation(myfield) FROM "mymeasurement" WHERE mytag =~ /^mytagvalue$/ AND time > now() - 15m
can be optimized to work on a direct tag match instead:
SELECT myaggregation(myfield) FROM "mymeasurement" WHERE mytag = 'mytagvalue' AND time > now() - 15m
E.g. it is possible for Grafana to generate such queries when selecting a single value from a template (e.g. tag values as templates) because regexps are available in the query editor.
InfluxDB could detect =~ /^foo$/ and rewrite that to = 'foo' and turn the linear scan into an index lookup.
The text was updated successfully, but these errors were encountered:
Queries matching a single tag value using regexp :
can be optimized to work on a direct tag match instead:
E.g. it is possible for Grafana to generate such queries when selecting a single value from a template (e.g. tag values as templates) because regexps are available in the query editor.
InfluxDB could detect
=~ /^foo$/
and rewrite that to= 'foo'
and turn the linear scan into an index lookup.The text was updated successfully, but these errors were encountered: