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

Forum module creates too many log messages

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.7.4, 3.1.3, 3.2
    • Fix Version/s: None
    • Component/s: Forum
    • Labels:
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
    • Sprint:
      Team '; drop tables Sprint 7, Team '; drop tables Sprint 9

      Description

      We use number of logs messages per minute to track how busy the sites we host are and we're seeing some strange behaviour from the Forum module. When a forum post is created hundreds or thousands of log entries are being created, it seems all users in the same course are notified of the new post and for each user that is notified a log entry is created. Then for each user who receives the notification another log entry is created to note that they received it.

      Not only does this throw off our usage calculations, but it also seems to be creating performance problems on the sites of our larger clients. When the cron runs, thousands of these spurious writes are being made to the database at the same time as legitimate logging of real events is going on.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              tbannister Tyler Bannister
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              11 Vote for this issue
              Watchers:
              16 Start watching this issue

                Dates

                Created:
                Updated: