Query optimization for nested repeater
I've a wizard layout that using nested repeater. I tried to debug the query and it turned out that some of the queries were duplicates. Anyone can help me to fix it?
5 Replies
![No description](https://cdn.answeroverflow.com/1219649094402834482/Screenshot_2024-03-19_at_21.03.58.png)
![No description](https://cdn.answeroverflow.com/1219649274481217637/image.png)
![No description](https://cdn.answeroverflow.com/1219649599090987048/image.png)
I've added
modifyQueryUsing: fn (Builder $query) => $query->with('lessons')
in relationship method and for some case the problem has fixed.But when I add a new section, the duplicate queries is shown again when I do any action.
![No description](https://cdn.answeroverflow.com/1219665900945412176/image.png)