Is there a way to write bulk values to an attribute? I have been able to post json to write a single value to an attribute but as soon as I start posting an array of json values I'm getting a '400 bad request' back...
Currently, bulk writes are not supported. The next release PI Web API 2015 R2 may have this feature, as indicated in the Product Roadmap PI Web API - Roadmap Details
What is the throughput you are looking for? One method to improve it is to try using an async HTTP request, so one write doesn't need to wait for the other.
Hi Barry, sorry for the delay in getting back to you. I have had to replace a web service that another system calls to send data to PI. In this scenario the other system sends the data in bulk sometimes but other times one datum at a time. We are getting about 80 ms per write of each datum synchronously. The interface seems to keep up in the long run but I would like it to be faster during peak times so I plan to modify it to call asynchronously. It would be very beneficial to our project if bulk writes were supports, so I will keep my fingers crossed
I checked internally on bulk write support and this is a feature that will be available in the future, probably in the next release.
Did Barry's answers below cover all your questions? If so, please mark this thread as answered by marking one of the responses as 'Correct Answer'. If not, please let us know if you have any follow-up questions.
Thanks Alssane, I have marked the correct answer from Barry.
Retrieving data ...