I’m sure this question has already been asked before but I can’t seem to find an answer so I’m hoping someone out there knows.
I’ve got a some elements on my page which I’m hiding and showing based on a conditional that uses the “Search for X” query. The “Search for X” is always the same thing. What I want to know, is this just seen as one call to “Search for X” that gets fed to all of my elements I’m adding conditional statement too, or is this three different calls, in turn, bumping up my WU’s? Would it be better to load that “Search forX” as state on the page and reference it that way?
If anyone has any guidance I’d love to know the answer! Thanks
If you have ‘Search for X’ in conditions, It might calculate it fresh each time. (There are sometimes when it reuses the cached response, as per some experts on Forum. Cant find the related thread.)
It is much handy to load the data as a repeating group in the background in a popup as a hidden variable and refer to it wherever necessary.
In case of state, you will assign the value via workflow. The list will remain same, as it is not looking for changes or new entries etc. In case you have a RG in popup with the data, RG will get updated each time a new entry is made etc.
State uses less WU because it is not consistently looking for updates.