influxdb-client-python icon indicating copy to clipboard operation
influxdb-client-python copied to clipboard

multiple queries in a single db call

Open NashTools opened this issue 3 years ago • 1 comments

is it possible to send multiple queries to InfluxDB in a single API call ?

see: Multiple Queries in https://docs.influxdata.com/influxdb/v1.7/guides/querying_data/

NashTools avatar Aug 10 '22 12:08 NashTools

Hi,

The link you provided for the docs is from InfluxDB 1.7. If you are using that version of InfluxDB you should instead be using the influxdb-python library, not this one.

This library, the influxdb-client-python, is meant to support InfluxDB Cloud, InfluxDB 2.x, and some limited support of InfluxDB 1.8.

In this version, the query API takes a Flux query. There are a lot of features included with Flux, including comparing across buckets. That example shows multiple queries, but ultimately the need to return a single set of values.

Give those docs a read and see if any of them match your use-case.

Thanks!

powersj avatar Aug 10 '22 14:08 powersj

Hi! Hopefully, the docs that I linked to helped out. I'm going to close this for now.

powersj avatar Aug 19 '22 18:08 powersj