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

Event observer queries are too slow on InnoDB with a large amount of rows #78

Open
1katoda opened this issue Sep 7, 2023 · 0 comments

Comments

@1katoda
Copy link

1katoda commented Sep 7, 2023

As stated in the title, DELETE queries from the event observer take too long on InnoDB database with a large amount of records and cause manual quiz grading to timeout.

Moodle version: any (running 4.1.5 (Build: 20230814))
Plugin version: 2022112800

I'll submit a PR with fixes, where DELETE queries are run in chunks of 10000 (which improves loading time from ~300s / timeout to ~4s with 5825844 rows in block_grade_me_quiz_ngrade table)

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

No branches or pull requests

1 participant