AnsweredAssumed Answered

PIWebApi Get Event Frames by Element Heirarchy Root Element

Question asked by I.Berry on Oct 11, 2017
Latest reply on Oct 20, 2017 by Eugene Lee

Is there a recommeded PIWebAPI pattern to query all the event frames based on a root AF Element?


I see there are two possible approaches


1) Get all the elements for a given root element, then use a batch query to get all the event frames for each element.


2) Get all the events, then filter the returned set based on RefElementWebIds


I am currently using option (2) in a web based application, but considering a move to (1), since getting all the open events is slower as the system grows. Both of these methods seem like a lot of work, is there another way to do this? I believe in the AFSDK we would need to do something like (1) as well, so perhaps there is not.