KQMATH / moodle-mod_capquiz

:mushroom: Computer adaptive practice activity module for Moodle
https://moodle.org/plugins/mod_capquiz
GNU General Public License v3.0
4 stars 5 forks source link

Do not load all questions #170

Closed hgeorgsch closed 4 years ago

hgeorgsch commented 4 years ago

This is hypothesised (partial) cause for #167 CAPQuiz appears to load the question list, which in turn loads all its questions, upon starting. This is a waste most of the time.

hgeorgsch commented 4 years ago

Pull request #171 does not appear to resolve the main issue, of slow response for the students, but it appears to have a positive effect on the response time of the quiz editor interface.

hgeorgsch commented 4 years ago

I have made several changes along the same lines, loading less data from the moodle core question table, but the main problem seems to persist. For some reason any student activity on capquiz creates a lot of queries on stack related questions, as long as there are such questions in the question list. The fact that the student attempt only concerns non-stack questions does not help.

hgeorgsch commented 4 years ago

I have started to doubt that this can be fixed in CAPQuiz. The most promising approach is this one suggested by Tim Hunt https://tracker.moodle.org/browse/MDL-67183 They are likely to accept a pull request if we manage to implement the suggestion, but it is going to be harder than I thought.

hgeorgsch commented 4 years ago

This has been resolved by a patch in Moodle 3.9.