Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extremely large number of log entries #17

Open
kingdavid127 opened this issue Feb 21, 2023 · 2 comments
Open

Extremely large number of log entries #17

kingdavid127 opened this issue Feb 21, 2023 · 2 comments

Comments

@kingdavid127
Copy link

$event = \core\event\course_module_completion_updated::create(array(

I think if some checks were added to see if the completion status has changed before triggering the event log at the code location noted above this, the problem would be resolved.

We had a client who saw 24 million log entries in 30 days and 96% of them came from two instances of this activity.

I may be able to provide a code fix soon, but just noting in case someone beats me to it.

@stefanscholz
Copy link
Member

Hi @kingdavid127 ,

thanks for reporting this issue. We've implemented several improvements to reduce the number of log entries (there's now a global setting to turn on and off detailed logs) and we've improved the overall query based on your input and the input from another Moodle partner.

Would love to get your feedback if you find some time in the future.

We're currently doing some final touches and will then release it after extensive testing.

Best
Stefan

@i-am-sheep
Copy link

Was this problem ever solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants