Skip to content

Proposal for adding a threshold to course_participant_count()

Hello again,

There are two important informations displayed by the functionality course further information:

  • number of attempts
  • number of participants

The fix for issue #179 (closed) has introduced performance issues on edge cases, when a course has lots of students (and/or lots of activities).

It wound be a shame to revert to the old code, so I propose adding a threshold for the number of participants.

When this number is under the threshold, the current code will be used. When it’s crossed, only the number of attempts will be shown.

I’ll try to implement thos idea is a merge request.