Hello,
I have a question regarding performance and WU consumption.
I have an application where I provide multiple lessons for students to watch.
Whenever a student clicks on a lesson, I confirm that they have watched it.
This results in a very large table.
I currently have around 1,000 lessons.
So, over time, each student will have 1,000 rows created in the database.
Now, here is the situation:
I need to use the watched lessons data for each student who enters the application for several purposes, such as calculating the number of lessons watched, calculating the total hours watched, marking the watched lessons in green, among other actions.
Theoretically, I would need to perform multiple Do a Search For queries.
To avoid running Do a Search For multiple times, I set up a Repeating Group to load all the watched lesson records at once. Now, all the actions that need to check which lessons a student has watched refer to this Repeating Group, instead of performing a new Do a Search For each time.
Is this a good practice to reduce WU consumption and improve performance?
Or would it be better to allow multiple Do a Search For queries instead?
Note: I am already using Privacy Rules to restrict lessons per student.
Thanks in advance for your help!
Best regards,