-
Notifications
You must be signed in to change notification settings - Fork 185
Closed
Labels
questionFurther information is requestedFurther information is requestedwontfixThis will not be worked onThis will not be worked on
Milestone
Description
I'm trying to run below query to fetch the last timestamp of a specific measurement (an IoT device) across the various fields (parameters). My query looks as below via the Python API:
influx_time = self.client.query_api().query(
f'from(bucket:"{self.influx_bucket}") |> range(start: 0, stop: now()) |> filter(fn: (r) => r["_measurement"] == "{device}") |> keep(columns: ["_time"]) |> sort(columns: ["_time"], desc: false) |> last(column: "_time")'
)
My question is whether there is an issue/bug with this query or the InfluxDB Python API? It seems to take ~76 seconds for a very light process. Any inputs are welcome.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requestedwontfixThis will not be worked onThis will not be worked on