-
Improvement
-
Resolution: Done
-
Minor
-
3.7.0
-
-
MOODLE_37_STABLE
-
MOODLE_37_STABLE
-
Moodle App 3.7.1
When prefetching a glossary, right now we prefetch all entries. In one of our test glossaries, this means we have around 1400 WS calls to get this data.
The entry data is already included in the get_entries_by_letter WS, so we could use that WS as a fallback to get the entry data if the by_id request isn't cached. That way we wouldn't have to prefetch all the entries individually.
There is an extra problem though. To use this fallback we need the glossary ID, and we don't have that in glossary auto-links. The only way to solve this is to have a local table with glossaryId + entryId so we can retrieve the glossaryId using an entryId in offline.
- Discovered while testing
-
MOBILE-3001 Retrieving the course users details has a big impact on performance
-
- Closed
-