orca-nrw / crossplatform-moodle-lti-plugin

GNU General Public License v3.0
3 stars 5 forks source link

ORCA-1074 Moodle - Many entries in LTI frontend could affect PC performance #51

Open KaiOrca opened 1 year ago

KaiOrca commented 1 year ago

Version Moodle 3.9.17

Reproduction steps:

Login as user

Create Course

Enable editing

Add activity

Select ORCA LTI to open Plugin

Search for content via search function

Actual result:

Many entries could affect performance on old Pc’s

Expected result:

The results are currently found extremely quickly. Apparently, this is made possible via an array with entries that is available locally in the client. With growing content, for example 400 pages of results, this can lead to problems. Poor-performing devices then cannot cope with a keystroke-initiated search and regularly hang up or take a long time.

In order to avoid the problem, such a search can only be triggered if there are at least 3 characters. This reduces too many requests for weak devices.