update执行时间长,偶尔出现超时Lock wait timeout exceeded; try restarting transaction

看你的查询是c4=1,这个可以过滤掉很多记录了吧?那这个索引就有效,你可以测试一下。