V5.3 ,3台tikv,3台tiflash。
我写测试边读边写场景的性能表现,当批量写入数据时,报了重复键错误,可是 我insert的数据没有这个重复键的数据。
【插入】
使用mybatisplus批量插入的方式
【报错】
org.springframework.dao.DuplicateKeyException: com.aliceframework.happy.test.db.mapper.PowercurveGuardMapper.insert (batch index #1) failed. Cause: java.sql.BatchUpdateException: Duplicate entry '632811010-2020-12-31 16:10:00' for key 'uni_wtid_starttime'
; Duplicate entry '632811010-2020-12-31 16:10:00' for key 'uni_wtid_starttime'; nested exception is java.sql.BatchUpdateException: Duplicate entry '632811010-2020-12-31 16:10:00' for key 'uni_wtid_starttime'
【数据库表唯一性约束】