MySQL thread id 470680, OS thread handle 139866286368512, query id 6231546 accounts-appserver5.account-creation-assistance.eqiad1.wikim 172.16.0.107 production Update
INSERT INTO log (objectid, objecttype, user, action, timestamp, comment)
RECORD LOCKS space id 539 page no 7646 n bits 480 index log_idx_typeuseraction of table `production`.`log` trx id 364473 lock_mode X locks gap before rec insert intention waiting
Record lock, heap no 271 PHYSICAL RECORD: n_fields 4; compact format; info bits 0
0: len 8; hex 4a6f625175657565; asc JobQueue;;
1: len 4; hex 7fffffff; asc ;;
2: len 8; hex 4a6f624973737565; asc JobIssue;;
3: len 4; hex 8008b653; asc S;;
*** (2) TRANSACTION:
TRANSACTION 421344197996928, ACTIVE 6 sec fetching rows
MySQL thread id 470678, OS thread handle 139866202814208, query id 6231573 accounts-appserver5.account-creation-assistance.eqiad1.wikim 172.16.0.107 production Sending data
SELECT
/* StatsTopCreators::execute()/top5out */
COUNT(*) count,
user.username username,
user.status status,
user.id userid
FROM log
INNER JOIN user ON user.id = log.user
LEFT JOIN emailtemplate ON CONCAT('Closed ', emailtemplate.id) = log.action
WHERE (emailtemplate.defaultaction = 'created' OR log.action = 'Closed custom-y')
AND log.timestamp BETWEEN CURRENT_DATE() AND NOW()
GROUP BY log.user, user.username
ORDER BY COUNT(*) DESC
*** (2) HOLDS THE LOCK(S):
RECORD LOCKS space id 539 page no 7646 n bits 480 index log_idx_typeuseraction of table `production`.`log` trx id 421344197996928 lock mode S
Record lock, heap no 1 PHYSICAL RECORD: n_fields 1; compact format; info bits 0