Hello
I’m having trouble choosing between these 2 options
" Repeating Group + Data OR Custom States "
the case is as follows, I have a native mobile app with the following pattern
in red is a group that contains 12 blue groups inside of it, each blue group has a text and an image always the same ( fixed and not changing )
when the user clicks on any blue group ( blue group 5 for example ) I want it to go to this green group that contains the same text and image based on the clicked blue group and the group in purple is a repeating group with search function based on the blue group choice
I found 2 solutions to achieve this
the first, is to convert the red group into a repeating group and insert every blue group text and image into a database and use the a search function to show all blue groups and use the same data to fill the green group image and text , the issue here that the blue groups content are fixed and not changing , there is no need to fill a database with an info that is always fixed and performing search operation while simply I can put the blue groups directly without any use of the database , and I’ve noticed a slow load of the blue groups which is a big issue when using a parent repeating group instead of a normal group that show the blue groups instantly
the second, is to keep the red group as a normal group and insert the blue groups manually which will make them load to the user instantly without searching through a database, and set a custom state to each blue group when pressed store a number of the blue group and use conditional statement inside the green group to show different text and image based on the pressed blue group , the issue here that I need 12 workflows for blue groups each of them pointing to the green group , and 24 conditional statements for text and image in green group
I’ve tried to simplify the explanation as much as I could, sorry if it isn’t
the 1st solution reduces workflows and custom states and conditional statements to almost none but uses a database and causes a slow load in the repeating group
the 2nd solution is instantly fast but uses a lot of workflows and conditional statements
which option is better for overall performance?
and is there another way to transfer data from blue group to the green one?