1 发现insert on duplicate key update (主键或唯一索引相同update) lock wait timeout,此表上一直有锁定
2 发现执行了 delete from client_config_report where ip not in(select ip from client_heartbeat_report)
针对类似子查询,官网说明如上
rc下非锁定读,rr下按next key lock的读锁
单个sql本身作为一个事务,锁在事务结束后释放
3 不建议使用这样的子查询,拆分sql执行