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
writePoint write a reduced array on same measurement #297
Comments
Has this ridiculous issue been fixed? I think I'm having the same issue. I wrote multiple points and only the last point get stored.
Only alarm_2 is stored into the DB |
Can confirm what @lms-lamhuynh says, currently, the implementation of Any updates on if this could be fixed? It pains me to have to use several hundred HTTP queries when one would suffice. Might also consider a few more tests cases for this area, using multiple points in |
This happened to me as well. If I'm passing a list of values, it's writing only the last element. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is definitely still an issue and one that prevents me using this library. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
See above statement. |
Setting incremented timestamp for each point manually do the job. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This should be reopened, no? |
This is still a problem.
Then the output from influxdb
It is annoying but when you think of it from the point of view of sensor data, you cant have two different readings at exactly the same time for the same device, there would be no point in taking these readings. You need to change the time for the readings manually as in the original post.
Now in influx
|
See above statement. |
I think There should be some kind of warning if the array has the same timestamp? If not At least this document https://node-influx.github.io/class/src/index.js~InfluxDB.html, should set an example with multiple points; currently example is only one. |
There might be 2 use cases:
@bencevans does it make sense to provide an additional parameter in IWriteOptions? Something like |
I tested writePoint by using an array and writing them individually, which gives different result
There is a use scenario where I need to write multiple measurement on the same measurement, I it occur to me that the method will only write one per unique measurement name.
I already tried adding different time value to the fields before send them to write.
To avoid this problem I make have a loop that write them individually.
Example code
result
The text was updated successfully, but these errors were encountered: