成功解决Duplicate entry '9551185' for key 'uk_query'

后端程序在执行多线程更新时报错:
### Cause: ERR-CODE: [-xxx][ERR_EXECUTE_ON_MYSQL] Error occurs when execute on GROUP 'xxx' ATOM 'xxx': Duplicate entry '9551185' for key 'uk_query' 
...
### Error updating database.  Cause: ERR-CODE: [xxx][ERR_EXECUTE_ON_MYSQL] Error occurs when execute on GROUP 'xxx' ATOM 'xxx': Duplicate entry '95585' for key 'uk_query' 
解决方法:
索引影响了批量插入,删除对应的索引 uk_query既恢复

你可能感兴趣的:(MyBatis,MySQL数据库)