Flex Repeater performance

Within a Perspective project we have a number flex repeaters and have found that the delay in displaying the contents can be longer than a good customer experience demands. Typically, a repeater view will have a few strings of text, some icons with path and visibility control and a small photo (50Kb ish). In some cases we need to show 150+ of these in the repeater and this can take 15 seconds on a PC browser with very little being displayed until 10seconds or more, on a iPhone browser, it fails and just repeatedly cycles to the Ignition loading screen.

We have tried sending the JSON as just a single index parameter to the view, letting the view collect the rest of the data individually, sending all the data excluding the photo and the entire dataset (as JSON) including the photo.

We have also collected and preloaded the dataset in the main view and sent it to the repeater using a button. Performance differs slightly but only by a second or two.

We can overcome the issue by limiting the number of views, 20 seems good and then allowing the user to add more as they require but it’s not ideal.

Is there any advice on improving the performance, we can’t do much with the users browsers but we have full control of the server and Ignition instance?

Hi Chris,

What sort of display are you trying to achieve using the flex repeater? Are you able to post any images of the current display? (if possible, a project would greatly help). As an alternative, there’s also the Table component that supports subviewing on each row. https://docs.inductiveautomation.com/display/DOC80/Perspective+-+Table.

Thanks,
Alen

Hi ayu

Thanks for the info and sorry for the delay in replying, We think we have found the main reason for poor performance.

It would seem that for each and every view, and that includes each view within a flex repeater, if icons are used then the entire icon library is downloaded. So, if a view has a single material icon used then each view will download the material icon SVG that is 286KB, if there are 100 views that’s 28MB

We have made a new icon library using just the icons we need and this is just 2KB, as you can imagine, things are a bit quicker and more responsive.

4 Likes