I'm trying to get points from server, update the points in parallel locally and send the list/points to the server.
Do PI server have such functionality for sending a list of updates for points to the server?
In this example when looping though the points updating each point one by one is a bit slow.
Our need is to be able to update 50000 points at least.
void UpdatePoints(string query)
{
PointList pl;
Random value = new Random((int)DateTime.Now.Ticks);
Double dValue;
pl = myServer.GetPoints(query);
_watch.Start();
foreach (PIPoint n in pl)
{
dValue = value.NextDouble();
UpdatePoint(n.Name, dValue);//Timestamp is added in Uptadte point rutine.
}
_watch.Stop();
Console.WriteLine("{0} values was updated, time elapsed:{1}", pl.Count, _watch.Elapsed);
_watch.Reset();
}