remotelearner / moodle-block_grade_me

14 stars 37 forks source link

Resolves #78, Implements chunked deletes in event observers #79

Open 1katoda opened 1 year ago

1katoda commented 1 year ago

As described in the issue #78 , this PR fixes Moodle timeouts with manual quiz grading, as DELETE queries on large InnoDB databases (~5.8M in our case) take too long.

With this PR, the records get deleted in chunks of 10000.