They give me the following as examples.. and say it increments through what seems to be every user. I have looked up a couple and when I looked it was at older accounts that haven't had activity in years. I wasn't sure that this was the same issue as that, but those are the queries they are giving me. Those queries look to be for grades.. but I don't of anything that would step through all users in the database in regard to grades.
UPDATE mdl_grade_grades
SET aggregationstatus = 'novalue',
aggregationweight = 0
WHERE itemid = '10206' AND userid = '516050'
SELECT gi.id, gg.aggregationstatus, gg.aggregationweight FROM mdl_grade_grades gg
JOIN mdl_grade_items gi ON (gg.itemid = gi.id)
WHERE gg.userid = '312344' AND (gi.categoryid = '40' OR gi.id IN ('9977','9975','9976','9974','9390','9589','9991','9992','9993','9657','9656','9057','9056','9054','9055','9456','9040','9039','9038','9041','9591','9592','9058','9188','9943','9994','9990','9459','9457','9458','6299','6300','6213','6214','6215','6216','6217','6230','6231','6232','6233','6247','6248','6249','6250','6263','6264','6265','6266','6267','6280','6281','6282','6283','6297','6298','10193','10194','7985','7987','7988','7986','7853','7852','7851','7854','9720','7991','7989','7984','7859','7857','7850','7855','9036','9045','9043','9652','9593','9595','9654','9050','9052','9979','9452','9454','9588','9586','10206','10204','7680','7682','7675','7673','6237','6210','6212','6219','6221','6226','6228','6235','6244','6246','6251','6253','6260','6262','6269','6271','6276','6278','6285','6287','6294','6296','6301','6528','6544','6546','9936','9445','9461','9650','9649','9651','9046','9047','9447','9448','9449','9450','10168','10016','9716','9048','9049','7677','7676','7679','6272','6273','6274','6275','6289','6290','6291','6292','6539','6540','6541','6542','6208','6222','6223','6224','6225','6238','6239','6240','6241','6242','6255','6256','6257','6258','6692','7995','7860','7678','7994','7993','9584','7992','7990','7858','7856','7849','7683','7681','9653','9655','9051','9053','9944','9212','9037','9035','9042','9044','9978','9451','9453','9455','9594','9596','9973','9446','9721','9585','9587','9719','9460','10205','10203','7674','6209','6211','6218','6220','6227','6229','6234','6236','6243','6245','6252','6254','6259','6261','6268','6270','6277','6279','6284','6286','6288','6293','6295','6543','6545','6547','9989'))