nocte
Well-known member
- Affected version
- 2.1.x
I had a similar issue as described here:
Running this query with a random unused user id took bout 40 seconds. This query runs with ever user deletion:
After adding an index to the column the same query (tested with different user id's) took about 0.0015 seconds
So, I think this index should be added and this can be called a bug.
For all having troubles like this: run this query:
XF 2.1 - Mass errors when batch deleting
Not sure is it bug or just my local problem (should I open support ticket?). I did some cleanup and batch deleted old unused acccounts (≈200). Soon after that cpu usage is grown and I got ton of errors like this: XF\Db\Exception: Job XF:UserDeleteCleanUp: MySQL query error [1205]: Lock wait...
xenforo.com
Running this query with a random unused user id took bout 40 seconds. This query runs with ever user deletion:
SQL:
UPDATE IGNORE `xf_reaction_content` SET `reaction_user_id` = 0 WHERE `reaction_user_id` = ?
After adding an index to the column the same query (tested with different user id's) took about 0.0015 seconds
So, I think this index should be added and this can be called a bug.
For all having troubles like this: run this query:
SQL:
ALTER TABLE `xf_reaction_content` ADD INDEX `reaction_user_id` (`reaction_user_id`) USING BTREE;