Handling Large number of Question Categories at the System Level

Handling Large number of Question Categories at the System Level

by Sean Moogan -
Number of replies: 1

In our current Moodle setup (3.1), we have a large number of question categories. We also have a high degree of question category reuse between courses. As a result we have about 8000 question categories (and growing) in the System context.

We are running into issues with how Moodle displays the question categories. It creates a drop down of all categories. This ends up create a dropdown with 8000 items contained in it. Some pages have this dropdown in two places. This is causing both performance issues as well as usability issues.

We are working on a way to improve the display of these dropdowns for our site (ideally making it searchable via ajax), but are unsure what the best way is to tackle the issue. In some places, the dropdown is being displayed with "html_writer" and in others is in a "moodle_form". Many of the locations aren't using renderers.

Is there an approach anyone can think of to modify (outside of core) how these dropdowns are being displayed or does it make sense to make a new card in the tracker to add renderers for the question category pages?

Average of ratings: -
In reply to Sean Moogan

Re: Handling Large number of Question Categories at the System Level

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Wow - that is a huge amount of categories.  I can't imagine ever trying to backup or restore a course...unless you exclude the question bank.

Not sure on the category search but there are two very cool plugins (Quick List) and (Quick Course List) that use AJAX to search.  I wondered if they could be duplicated into a new block that search questions - then you would just need a way to be able to select and add to a quiz from the block...