learnweb / moodle-mod_ratingallocate

:pray: "Fair allocation" moodle activity
https://moodle.org/plugins/view/mod_ratingallocate
20 stars 29 forks source link

Improve performance of get_all_groups_of_choices #305

Open aneno-m-e opened 2 months ago

aneno-m-e commented 2 months ago

One of our clients is facing performance issues (504 Gateway Time-out) when using this plugin in certain courses.

We've identified the function get_all_groups_of_choices as a cause and rewrote it to minimise the number of database queries done in order to retrieve $groupids.