AnsweredAssumed Answered

Retrieving historical data for multiple tags in one call

Question asked by Jeevan on Dec 11, 2015
Latest reply on Dec 11, 2015 by Jeevan



I am trying to retrieve historical values, for about 70,000 tags. At the moment I'm using the following method:


          var points = new PISDK.PISDK().Servers["my-server"];

          List<PIValues> history = new List<PIValues>();

          foreach(PIPoint point in points)


                history.Add(point.Data.RecordedValues(DateTime.Now.AddDays(-5), DateTime.Now, BoundaryTypeConstants.btInside));



This is needless to say very expensive because it is making a call to the PI Server for each item. Does anyone know if there is a way to get these values in one call?