Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inefficient way of checking whether the "Form a group" menu item should be shown or not. #1367

Open
sayravai opened this issue May 22, 2024 · 0 comments · May be fixed by #1368
Open

Inefficient way of checking whether the "Form a group" menu item should be shown or not. #1367

sayravai opened this issue May 22, 2024 · 0 comments · May be fixed by #1368
Assignees
Labels
area: performance Related to the performance of the system

Comments

@sayravai
Copy link
Contributor

The current code goes through all the learning objects to look for the one with the largest allowed group size. This seems very inefficient as it creates a lot of extra queries for every page load. It would probably be a good idea to replace this by simply adding a "Students can form groups" boolean directly to the course instance model. This could be on by default, and if the teacher wants to hide the group forming functionality from students for the course instance, he/she could just uncheck a box in Edit course -> Course.

@sayravai sayravai added the area: performance Related to the performance of the system label May 22, 2024
sayravai added a commit to sayravai/a-plus that referenced this issue May 22, 2024
@ihalaij1 ihalaij1 moved this to Under review in A+ sprints Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: performance Related to the performance of the system
Projects
Status: Under review
Development

Successfully merging a pull request may close this issue.

1 participant