Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-44366

filter_glossary has the potential to be slow on large sites

XMLWordPrintable

    • MOODLE_26_STABLE
    • MOODLE_27_STABLE
    • w16_MDL-44366_m27_filtergloss
    • Hide

      1/ execute phpunit tests
      2/ set up glossary linking (enable in glossary and entries, add categories and aliases, enable filter) and test if it works as before or better (now it should deal with groupmembersonly too)
      3/ verify that enabling of the glossary filter does not increase DB queries per page
      4/ create a number of glossaries in different courses with additional entries
      5/ verify that the number of DB queries does not increase

      Show
      1/ execute phpunit tests 2/ set up glossary linking (enable in glossary and entries, add categories and aliases, enable filter) and test if it works as before or better (now it should deal with groupmembersonly too) 3/ verify that enabling of the glossary filter does not increase DB queries per page 4/ create a number of glossaries in different courses with additional entries 5/ verify that the number of DB queries does not increase
    • 40
    • BACKEND Sprint 12

      As a follow-on to MDL-43524 which removed global text caching, we need to examine the glossary filter and probably add MUC caching there to improve performance.

      The glossary filter is what puts links in texts to glossary entries. There is quite a lot of processing going on in the background even before the simple text replacement, and this needs to be redone every time the cache is invalidated.

      Petr has raised that the fully correct way would be to use new events or the as-yet-unwritten hooks to invalidate the caches, but I think that might be too much to do before 2.7, so I want to see a quick solution here even if it may mean relying on less-perfect cache invalidation.

      This issue requires performance comparison tests before and after the fix.

            skodak Petr Skoda
            dougiamas Martin Dougiamas
            Marina Glancy Marina Glancy
            Dan Poltawski Dan Poltawski
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.