MySQL 8.0.27 Review by adzfolc
Notifications
- In this doc, I will make the rules of my code review and period summary for later review.
- This chapter may cotain comprehensive summary of MySQL/Innodb/MGR.
- Review format
- My Code review would be written in source code in format of annonation.
- Some key annonations would be begined with
__adzfolc__
. - Some questions,which make me confused, would be denoted with
__adzfolc__ Q:
- Some optimizaton would be denoted with
__adzfolc__ To Do: refractor
.
Keypoint
- Server
- Thread model
- MySQL Packet Decode
- SQL
- Parser
- Optimizer
- SQL Plan
- SQL Optimizer
- Execution
- InnoDB
- Transaction
- How ACID is implmented?
- GTID
- Locks
- Logs
- Undolog
- Redolog
- Binlog
- Transaction
- Replication
- MGR
- Basic Paxos and Mutli Paxos
- Multi Paxos and Mencius
- How Mencius is implemented in MGR
- MGR
- Storage
- B+ Tree
Notes
-
00_Summary
00_summary -
01_Server
00_server_mmary
01_thread_model
02_memory_management
03_mysqld_main
04_connection_lifecycle -
02_sql
00_sql_parser_and_optimizer -
03_storage
00_storage_layer_intro
01_mysql_meta_data -
99_QA
99_QA
Expandsion
-
Based on tourtial, I implement a storage engine called Casablanca.Source code path is storage/casablanca.
-
基于教程,我实现了名为 Casablanca 的存储引擎.代码路径在 storage/casablanca.
-
Ability
- CRUD
- Index
-
To Do:
- 优化索引结构
-
Casablanca is still under construction.
Reading
- MySQL核心内幕
- Chp 7 查询解析与优化器
- Chp 8 安全管理系统
- P230
- MySQL技术内幕-InnoDB存储引擎 P330
- MySQL 8.0 Reference Manual P3033
- MySQL 运维内参 P160 InnoDB 记录格式
Recommend Materials
Book | Comment |
---|---|
MySQL 8.0 Reference Manual | MySQL使用手册 |
MySQL Internals Manual | MySQL内核详设 |
PerconaServer-for-MySQL-8.0.23-14 | Percona详设,含 Myrocks/Toukudb |
内核月报 | YYDS |
网易杭研InnoDB分享 | 讲的很好,内容侧重 MGR |
事务处理-概念与技术 | 好书,有讲 trx system 的设计,有很多设计的框架雏形 |
MySQL核心内幕 | 正在入门,手撕引擎实现 |
MySQL技术内幕-InnoDB存储引擎 | 重原理,需要自己结合参数看代码 |
MySQL运维内参 | 讲实现的,有 MGR ,书结合最新代码能凑合看 |
MySQL内核-INNODB存储引擎 | 好书,代码古早版本,宏观能对上 |
高性能MySQL | 听说过没看过 |
Introducing InnoDB Cluster | 没听说过也没看过 |
Expert MySQL | 听说过没看过 |
深入理解MySQL核心技术/Understanding MySQL Internals | 看过部分,古早版本的代码 |
MySQL是怎样运行的 | 原理+口水书,写的不严肃.讲 Redo Undo Buffer 的模块很详细,结合代码看看 |
MySQL Concurrency | 没听说过也没看过 |
MySQL Group Replication_ The Magic Explained v1/v2 | Oracle Slides,应该靠谱,没看 |
数据库查询优化器的艺术 | SQL 可看可不看... |