随笔分类 - 实验
Experiment
摘要:##理论: ##select * from user where xx=1 limit 10,10需要有ORDER BY 字段。 然后需要 (xx, orderCol) 的复合索引,再使用select * from user a inner join (select id from user where xx=1 order by id limit 10,10) b using(id)## 测试 ##大数据量分页表:product 约36W条数据使用普通limit: 14.8276 sSELECT * FROM product order by id limit 300000, 5优化后: 0
阅读全文
摘要:1.创建replication账号(Master 和 Slave) GRANT REPLICATION SLAVE,REPLICATION CLIENT ON *.* TO repl@'192.168.200.%' IDENTIFIED BY 'bravezhang'; 2.修改my.cnf ...
阅读全文
摘要:OS: CentOS 32bitFile System: ext3Mysql Version: 5.5.3m3 source code 今天做了数据插入测试,遇到mysql报错1. OLTP测试的时候MyISAM引擎插入数据最多只能4719889条,Innodb则没有问题报错:ALERT: Erro...
阅读全文
浙公网安备 33010602011771号