Site disabled - DB running very slowly
My DB is really huge these days, and the cause seems to be the LUM_IPHistory table and the LUM_UserDiscussionWatch table.
I've emptied LUM_IPHistory - is there anything i can do about the other one? It is running at about 60mb.
0
This discussion has been closed.
Comments
DELETE dw FROM LUM_UserDiscussionWatch as dw LEFT JOIN LUM_Discussion as d ON dw.DiscussionID = d.DiscussionID WHERE d.DateLastActive < DATE_SUB(NOW(), INTERVAL 365 DAY);