Hi everybody,
We upgraded our moodle platform this summer, from version 3.1 to 3.5.7. Everything seems to work fine after this upgrade.
But, during last days, some of our users have complained of slow backups and restorations of their (heavy) courses. Theses courses includes one or several tests with a lot of random questions ...
We ran a lot of benchmarks around our server and different services (apache, postgresql notably) and we did not see any performance issues (our server has 24 cores cpu, 64 Gbytes of RAM, SSD disks, ...).
After further research, we noticed that the 'question' table was growing very fast : 300 000 questions on the 3.1 moodle version (before migration) and over 3 600 000 questions now on the new version (3.5.7). Apparently, each duplication or restoration of a course including a quiz with random questions has a bad impact on this table and increases considerably the number of rows ...
We have already tried to launch as a cli command the scheduled task 'qtype_random\\task\\remove_unused_questions' (cf bug tracking mdl-63260 - https://tracker.moodle.org/browse/MDL-63260) with no effect or success ...
Is there another solution or workaround to solve this problem ... Our moodle platform is becoming less and less reactive and we don't know how to fix it !!!
Thank you by advance for your help or your advices ...
Best regards