c++ 面试题(数据库)

1,索引的原理:php

  http://www.javashuo.com/article/p-szrrqrjn-dw.htmlhtml

  https://blog.csdn.net/qq_32924343/article/details/80199977(值得一看)mysql

2,聚簇索引和非聚簇索引:算法

  重要区别:该索引中键值的逻辑顺序是否决定了实际表中相应行的物理顺序。sql

  https://www.cnblogs.com/shanshanlaichi/p/6568097.html数据库

3,mysql cluster原理:性能

  关键点:主从同步:同步复制策略,2pc(两阶段提交协议来实现,四次消息传递)优化

  http://www.javashuo.com/article/p-swcceccs-z.html.net

4,分库和分表:日志

  https://www.cnblogs.com/sunny3096/p/8595058.html

  引出水平分表时的一致性哈希算法:

  参考:http://www.javashuo.com/article/p-tzgogqcu-cr.html

                  单点故障问题:https://blog.csdn.net/dinglang_2009/article/details/7016193

5,mysql 主从模式:

  http://www.javashuo.com/article/p-gyoofqsz-k.html

6,query cache 原理:

  https://blog.csdn.net/tonyxf121/article/details/7856361

7,mysql 数据库中 Innodb 和 MyISAM  引擎的区别:

  https://blog.csdn.net/nwpu_geeker/article/details/79694773

8,MySQL 为何用 B+ 树而不用红黑树?

  http://www.javashuo.com/article/p-klhpptmc-gp.html

9,MySql 底层原理:

  http://www.javashuo.com/article/p-hevaaszz-k.html

10,数据库事务回滚方法:

  undo,redo,undo/redo 日志进行恢复操做。

11,乐观锁和悲观锁:

  https://blog.csdn.net/L_BestCoder/article/details/79298417

12,MySql 的优化策略:

  http://www.javashuo.com/article/p-otowtrkb-bb.html

13,数据库事务的底层原理:

  http://www.javashuo.com/article/p-qohyygns-eq.html

14,联合索引须要注意什么?

  https://www.phpsong.com/586.html

       联合索引为何是最左匹配?

       http://www.javashuo.com/article/p-efxuillj-mv.html

15,如何定位、排除和避免MySql 数据库性能问题?

  https://blog.csdn.net/madman_G/article/details/80516276

相关文章
相关标签/搜索