I am finding the python client to be very very slow
I'm querying the data using python as follows, which takes about 20min to execute
result = query_api.query_data_frame('from(bucket: "testing")'
'|> range(start: 2020-02-19T23:30:00Z, stop: now())'
'|> filter(fn: (r) => r._measurement == "awair-api")'
, org=credentials.org)
I run the same command using a shell script which extracts the data in about 6 seconds
curl https://us-west-2-1.aws.cloud2.influxdata.com/api/v2/query?org=org@org.com -XPOST -sS \
-H 'Authorization: Token tokencode==' \
-H 'Accept: application/csv' \
-H 'Content-type: application/vnd.flux' \
-d 'from(bucket:"testing") |> range(start: 2020-02-19T23:30:00Z, stop: now()) |> filter(fn: (r) => r._measurement == "awair-api")' >> test.csv
I am finding the python client to be very very slow
I'm querying the data using python as follows, which takes about 20min to execute
I run the same command using a shell script which extracts the data in about 6 seconds