Interview series 8: database mysql

Irving the procedural ape 2020-11-10 19:25:18
interview series database mysql


Database correlation

  • mysql The data structure of the index , The principle of Suzuki
  • InnoDB and myiasm The difference between , And common mysql Optimization plan
  • sql Query optimization
  • say something Mysql Of sql Optimize
  • mysql The index of ,b+ Whether the tree index supports range query , Failure of Federated indexes
  • Those databases are used in the development ? answer mysql, What are the storage engines ? Then I asked me about pessimistic lock and optimistic lock 、 The principle of distributed cluster implementation .
  • Database indexing principle
  • mysql Indexes B+ Tree principle
  • mysql How the index is implemented ?b+ What are the characteristics of trees ? Where is the real data ? When to index ? Explain the leftmost matching principle ? Now a table has three columns a b c, Composite index (a,b,c) When querying where a like ? and b=? and c=? Can you use this composite index ? Why?
  • explain Have you seen the implementation plan ? among type What values do fields have ? What do they stand for ? 26. What do you have sql Tuning experience ?
  • How to divide database and table ? How to solve the problem of data migration ?
  • Database index , Multi level index
  • What are the isolation levels of database transactions ?Mysql Default isolation level ? What are the different levels of isolation achieved through ?mysql Of explain Have you ever used it ? Let's talk about the slow query of database ? Let's talk about the pessimistic and optimistic locks of the database , When is it appropriate to use optimistic lock ? When to use pessimism lock ?
  • Talk about it. MySQL Two common storage engines , Applicable scenario ------MyISAM and InnoDB Comparison of
  • Talk about your understanding of database index
  • How to ensure the consistency of cache and database double write
  • mysql Database default storage engine , What are the advantages MySQL Transaction isolation level for , What problems should be solved separately . Talking about transaction characteristics (ACID)?
  • MySQL What locks are there ? Explain it. ACID What are they Innodb The implementation of index in B+ Trees
  • AUTO_INCREMENT principle ( Look at concurrency ) What are the indexes of the database ? Why use B+ Trees to index ? What's the difference between a composite index and several individual indexes ? Database large table query optimization understand ?MVCC Mechanism understanding ?MVCC What's wrong with the mechanism ? How to solve this problem ?mysql Have you ever done slow sentence tuning ? Tell me how you did it
  • Let's talk about database optimization ?
  • Do you know the back watch ?
  • The realization principle of index ?B Trees and B+ The difference between trees ?
  • Let's talk about index structure , Why use B+ Trees ?
  • mysql Isolation level , What's the difference? ? Several types of indexes ? Storage structure of index ? Use B+ The benefits of trees ? The index value has changed , How the structure of the tree changes ?
  • The difference between primary key index and secondary index What data does the primary key index store Why do primary keys use auto_increment How to generate a unique primary key A:UUID UUID The shortcomings of mysql How to implement persistence in transactions
  • Mysql Transaction isolation level 、 lock 、 The data structure of the index 、 Clustered index and non clustered index 、 Left most matching principle 、 Query optimization (explain Wait for the order ) common problem Mysql(innondb The same below ) What are the transaction isolation levels ? What locks will be added to different transaction isolation levels ? mysql The row lock 、 Table locks 、 Clearance lock 、 What do intention locks do respectively ? What is the left most match ? How to optimize slow query ? mysql Why index is used b+ tree instead of b tree、 Red and black trees How to select sub table key for sub database and sub table In the case of sub database and sub table , How to do sorting when querying ?
  • Database tuning ideas .
  • What kind of optimization or optimization ideas have you done ? Do you understand the index of the database ? Let's talk about the principle of indexing ? Clustered index and nonclustered index understand ? understand mysql Is it back to your watch ? mysql Implementation of distributed lock, understand ? Is there any other better way ? Say something about the business ? What do you know about business ? Talk about optimistic lock and pessimistic lock of database ?
  • Database transactions ? Database concurrency strategy ?
  • introduce mysql The return table and overlay index of ? The back table is simply the database according to the index ( Non primary key ) After finding the row of the specified record , You also need to retrieve data from the database again according to the primary key . If an index contains ( Or cover ) The value of all the fields that need to be queried , be called ‘ Overlay index ’. That is, you only need to scan the index without returning the table .
  • mysql Index understand , Why index ; What are the indexes ; What happens if there's no primary key ; The difference between clustered index and non clustered index ;myisam and innodb Which keeps the total number of records in the table , Why? ; Why use a federated index ;bc Will go abc Union index ; mysql What are the locks , The principle of intentional lock ; mysql Isolation level , Which problems have been solved respectively , Dirty reading 、 It can't be read repeatedly 、 What does unreal reading mean , How repeatable reading is achieved ; mysql How the master-slave node ensures the data consistency ;
  • The difference between clustered index and non local index . mysql Storage engine for . innodb and myisam The difference between Why? myisam Support transactions ,innodb How are transactions supported , Why? myisam Do not use and innodb To solve the same problem , Why is it slow when there is a large amount of data sql? slow sql How to solve . how sql Optimize . How to do sub database and sub table ? How to separate database and table? The data between different databases and tables is not repeated .
  • MySQL As compared with snowflake algorithm, global uniqueness id In addition to performance problems , What is the ?
  • mysql The difference between the two storage engines 2. If there are a lot of additions and deletions , So which storage engine should you choose , Why? ?
  • hash and B+ The difference between trees ? What scenarios are they applied to ? Which is better ?
  • Why? MyISAM Good query performance ? Talking about transaction characteristics (ACID)? m.........
版权声明
本文为[Irving the procedural ape]所创,转载请带上原文链接,感谢

  1. 【计算机网络 12(1),尚学堂马士兵Java视频教程
  2. 【程序猿历程,史上最全的Java面试题集锦在这里
  3. 【程序猿历程(1),Javaweb视频教程百度云
  4. Notes on MySQL 45 lectures (1-7)
  5. [computer network 12 (1), Shang Xuetang Ma soldier java video tutorial
  6. The most complete collection of Java interview questions in history is here
  7. [process of program ape (1), JavaWeb video tutorial, baidu cloud
  8. Notes on MySQL 45 lectures (1-7)
  9. 精进 Spring Boot 03:Spring Boot 的配置文件和配置管理,以及用三种方式读取配置文件
  10. Refined spring boot 03: spring boot configuration files and configuration management, and reading configuration files in three ways
  11. 精进 Spring Boot 03:Spring Boot 的配置文件和配置管理,以及用三种方式读取配置文件
  12. Refined spring boot 03: spring boot configuration files and configuration management, and reading configuration files in three ways
  13. 【递归,Java传智播客笔记
  14. [recursion, Java intelligence podcast notes
  15. [adhere to painting for 386 days] the beginning of spring of 24 solar terms
  16. K8S系列第八篇(Service、EndPoints以及高可用kubeadm部署)
  17. K8s Series Part 8 (service, endpoints and high availability kubeadm deployment)
  18. 【重识 HTML (3),350道Java面试真题分享
  19. 【重识 HTML (2),Java并发编程必会的多线程你竟然还不会
  20. 【重识 HTML (1),二本Java小菜鸟4面字节跳动被秒成渣渣
  21. [re recognize HTML (3) and share 350 real Java interview questions
  22. [re recognize HTML (2). Multithreading is a must for Java Concurrent Programming. How dare you not
  23. [re recognize HTML (1), two Java rookies' 4-sided bytes beat and become slag in seconds
  24. 造轮子系列之RPC 1:如何从零开始开发RPC框架
  25. RPC 1: how to develop RPC framework from scratch
  26. 造轮子系列之RPC 1:如何从零开始开发RPC框架
  27. RPC 1: how to develop RPC framework from scratch
  28. 一次性捋清楚吧,对乱糟糟的,Spring事务扩展机制
  29. 一文彻底弄懂如何选择抽象类还是接口,连续四年百度Java岗必问面试题
  30. Redis常用命令
  31. 一双拖鞋引发的血案,狂神说Java系列笔记
  32. 一、mysql基础安装
  33. 一位程序员的独白:尽管我一生坎坷,Java框架面试基础
  34. Clear it all at once. For the messy, spring transaction extension mechanism
  35. A thorough understanding of how to choose abstract classes or interfaces, baidu Java post must ask interview questions for four consecutive years
  36. Redis common commands
  37. A pair of slippers triggered the murder, crazy God said java series notes
  38. 1、 MySQL basic installation
  39. Monologue of a programmer: despite my ups and downs in my life, Java framework is the foundation of interview
  40. 【大厂面试】三面三问Spring循环依赖,请一定要把这篇看完(建议收藏)
  41. 一线互联网企业中,springboot入门项目
  42. 一篇文带你入门SSM框架Spring开发,帮你快速拿Offer
  43. 【面试资料】Java全集、微服务、大数据、数据结构与算法、机器学习知识最全总结,283页pdf
  44. 【leetcode刷题】24.数组中重复的数字——Java版
  45. 【leetcode刷题】23.对称二叉树——Java版
  46. 【leetcode刷题】22.二叉树的中序遍历——Java版
  47. 【leetcode刷题】21.三数之和——Java版
  48. 【leetcode刷题】20.最长回文子串——Java版
  49. 【leetcode刷题】19.回文链表——Java版
  50. 【leetcode刷题】18.反转链表——Java版
  51. 【leetcode刷题】17.相交链表——Java&python版
  52. 【leetcode刷题】16.环形链表——Java版
  53. 【leetcode刷题】15.汉明距离——Java版
  54. 【leetcode刷题】14.找到所有数组中消失的数字——Java版
  55. 【leetcode刷题】13.比特位计数——Java版
  56. oracle控制用户权限命令
  57. 三年Java开发,继阿里,鲁班二期Java架构师
  58. Oracle必须要启动的服务
  59. 万字长文!深入剖析HashMap,Java基础笔试题大全带答案
  60. 一问Kafka就心慌?我却凭着这份,图灵学院vip课程百度云