I noticed 1 core on our MySQL server supporting myDBR was constantly 100% busy. I used MONyog to trace SQL that was running against the database and found this type of query was running over and over:-
insert into folders_tmp values ( NAME_CONST('inID',1), NAME_CONST('v_order',722342404) )
I traced that to the body of the "sp_MyDBR_template_folder" stored procedure where there's a WHILE loop that must have got stuck in an infinite loop. It appears to have spun around that loop 722 million times!
Qu) What does that stored procedure actually do?
Qu) Does it matter that I killed it?
Qu) Should there be a failsafe in there to prevent an infinite loop?
Thanks,
Graham.