We upgraded to moodle 3.1 a couple months ago and recently discovered that the mdl_logstore_standard_log has over 250,000,000 records in it!
I did a little digging to discover the following:
Origin = cli
target = user
action = updated
component = core
eventname = \core\event\user_updated
I think that this command is running out of control (paraphrased)
INSERT INTO mdl_tmp_extuser username mnethostid VALUES...
but I am not very good with mysql so not sure how to determine for sure if that is the culprit.
Can anyone tell me how to get this under control?
Also, I am trying to delete from mdl_logstore_standard_log where origin='cli' and target='user' and action = 'updated'; but I don't think it is actually doing anything. I let it run for a few hours last week with no result.
I did read that I might be able to truncate the whole table with more success but I did not get a chance yet to read up on what kind of activity reports might be impacted by that.
Moodle is running on Centos6 with mysql 5.6.26
We have not updated to 3.2 because many of our courses are using an outdated certificate plugin and our course managers are working on migrating them to badges first.
Any help appreciated.
Dave Baldwin