- 知识链接汇总
备份
https://www.cnblogs.com/topicjie/p/7354418.html
https://www.cnblogs.com/yuyue2014/p/3650117.html
MVCC
https://chenjiayang.me/2019/06/22/mysql-innodb-mvcc/
mySql的执行顺序和执行计划
https://zhuanlan.zhihu.com/p/174837654
mysql执行过程以及顺序
https://www.cnblogs.com/wyq178/p/11576065.html
知识全集
http://c.biancheng.net/view/8355.html
以下哪个不能有效减小从库延迟时间()
A.主库进行update操作时where后条件没有索引,添加索引
B.主库有大事物,增加缓存,异步写入数据库,减少直接对db的大量写入
C.主库并发更新写入频繁,从库设置innodb_flush_log_at_trx_commit=1及sync_binlog=1
D.数据库中存在大量myisam表,修改表结构为innodb存储引擎的表
答案:C
表test(a int,b int,time date)涉及以下3条sql:
select * from test where a=1 and b=1;
select * from test where b=1;
select * from test where b=1 order by time desc;
只建一个索引,如何建最优()
A.idx_ab(a,b)
B.idx_ba(b,a)
C.idx_abtime(a,b,time)
D.idx_btime(b,time)
答案:D
MySQL中InnoDB引擎的行锁是通过加在什么上完成(或称实现)的:(B)
A.数据块
B.索引值