批量replace into出现死锁,整体数据中不存在主键相同的数据,唯一索引有两个`name`索引(组合索引:name+source_flag)和index_property2索引(组合索引:id+ property2),其中id是主键。标红的是name和source_flag字段,标绿的是id和property2字段
REPLACE INTO company(id,base,NAME,legal_person_id,legal_person_name,legal_person_type,reg_number,company_type,company_org_type,reg_location,estiblish_time,from_time,to_time,business_scope,reg_institute,approved_time,reg_status,reg_capital,actual_capital,org_number,org_approved_institute,flag,parent_id,updatetime,list_code,ownership_stake,source_flag,name_suffix,property1,property2,property3,property4,property5,crawledtime)
VALUES('
139224108','sd','
津津保险公司','25955644','钱司均','1','37040011117153','0','其他股份有限公司分公司(非上市)','山东省枣庄市高新区锦水长街互联网小镇5号楼B座202号','2017-10-25','2017-10-25',NULL,'为投保人拟定投保方案、选择保险人、办理投保手续;协助被保险人或受益人进行索赔;为委托人提供防灾、防损或风险评估、风险管理咨询服务。(依法须经批准的项目,经相关部门批准后方可开展经营活动)','枣庄市工商行政管理局','2017-10-25','在营','','','MA3EQ2TP1','','1','506086','2018-04-01','','','
http://qyxy.baic.gov.cn/','','91370400MA3EQ2TP1R','
','','','','2017-10-30');
REPLACE INTO company(id,base,NAME,legal_person_id,legal_person_name,legal_person_type,reg_number,company_type,company_org_type,reg_location,estiblish_time,from_time,to_time,business_scope,reg_institute,approved_time,reg_status,reg_capital,actual_capital,org_number,org_approved_institute,flag,parent_id,updatetime,list_code,ownership_stake,source_flag,name_suffix,property1,property2,property3,property4,property5,crawledtime)
VALUES('
50207412', 'gd', '
潮州市潮安区洁厦瓷业有限公司', '10433735', '蔡映秋', '1', '445121000045309', '0', '有限责任公司(自然人投资或控股)', '潮州市潮安区凤塘镇泮洋村沙堀片', '2000-12-19', '2000-12-19',NULL, '生产:陶瓷卫生洁具、日用瓷、瓷釉(不含危险品及涉及污染物排放)、瓷泥、陶器;销售:水暖器材、不锈钢制品、五金交电、家用电器、塑料制品。(依法须经批准的项目,经相关部门批准后方可开展经营活动)', '广东省潮州市潮安县工商行政管理局', '2018-04-11', '在营(开业)企业', '2000万人民币','', '41741471','', '1', '0', '2018-09-06','','', '
http://qyxy.baic.gov.cn/','', '91445103741741471L','
', 'Jiexia Ceramic Industry Co.,Ltd.','','', '2018-09-06')
日志截图如下