摘要:
1.插入 分批次插入 5w条数据,每次插入5000,总耗时在50s左右 2.删除 mysql一次性删除大量数据是有可能造成死锁的,而且也会抛异常 The total number of locks exceeds the lock table size in MySQL 这是由于需要删除的数据太大, 阅读全文
摘要:
1.生成数据 2.查询 [SQL] SELECT * FROM person ORDER BY username DESC limit 100;受影响的行: 0时间: 3.900s 3.建立索引查询 create index index_user on person(username(100)); 阅读全文