-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize InfluxDB query & BugFix #26
base: main
Are you sure you want to change the base?
Conversation
InfluxDB was returning erros. So I adapted the way of building the query.
Hi, |
First I am not an influxdb expert. Just working with it the first time. From influxdb docs I can quote and say your way is not wrong ( https://influxdb-client.readthedocs.io/en/stable/api.html#influxdb_client.WriteApi.write ). You can hand over a list. But than I read the linked article and think one should condense the data string before passing. For example: your list is much longer, as it always contains the name of the measurement variable. Just compare the debug output of our two codes. If it is all about code simplicity, passing the original dict - just found out from the docs, that should be possible too - would be even "cleaner", than rewriting the values to strings. Beside that, I would like to suggest to reduce the |
Hi @benni336, |
Sorry, again merge conflicts on this commit |
According to https://www.influxdata.com/blog/writing-data-to-influxdb-with-python/
pushing data to influxdb is more efficient by merging data into one string.