mysql源代码多少行_数据库是一个庞大的工程,本来想读读mysql的开源代码,可看到代码行数.doc...

数据库是一个庞大的工程,本来想读读mysql的开源代码,可看到代码行数

数据库是一个庞大的工程,本来想读读mysql的开源代码,可看到代码行数就心寒了,只能一步一步渐进学习了。预计分三步走:1.基本应用,主要以mysql mannul为帮助,基本完成。2.性能调优的学习,参考资料:High.Performance.MySQL,学习mysql中内部机制,包括索引的应用,sql解析过程,另外需要做一些实验,深入了解。(刚刚开始)3.mysql深入学习,参考资料.Understanding.MySQL.Internals,对mysql源码进行一些简单的分析学习。?? 下面就是我在学些mysql性能调优的一些笔记:??? 第一章 Mysql架构??? 1. Optimization and Execution: 优化器和引擎的关系,The optimizer does not really care what storage engine a particular table uses, but the storage engine does affect how the server optimizes query.??? 2. Concurrency Control 解决方式:Read/Write Locks。??? 3. Lock粒度:Table(常用) ,Row(InnoDB and Falcon)。??? 4. Transactions(ACID): Atomicity,Consistency,Isolation,Durability。??? 5. Isolation Levels:READ UNCOMMITTED,READ COMMITTED,REPEATABLE READ(Mysql Defautl),SERIALIZABLE,其差异在于page 9;??? 6. Multiversion Concurrency Control(MVCC):You can think of MVCC as a twist on row-level locking; it avoids the need for locking at all in many cases and can have much lower overhead.It also means different transactions can see different data in the same tables at the same time!(数据会有镜像,在一个操作未完成的时候,查询结果不一致)?? ???? InnoDB implements MVCC by storing with each row two additional, hidden values that record when the row was created and when it was expired (or deleted).??? 7. Mysql存储引擎:各种引擎分析和优缺点介绍,不罗列。??? 8. 选择引擎需要考虑的问题:Transactions,Concurrency(Table or Row?),Backups(第十一章),Crash recovery(MyISam容易坏,并且恢复慢),Special features(比如全文检索)。???? 第二章 Finding Bottlenecks: Benchmarking and Profiling??? 1. Benchmarking Strategies:full-stack(整体测试,比如web server) and single-component benchmarking,都需要,在不同的情况下使用不同的测试方式。??? 2. What to Measure:Transactions per time unit,Response time or latency,Scalability(测量在各种情况下的性能),Concurrency(并发性?)。??? 3. Benchmarking Tools??????? Full-Stack Tools:ab,http_load,JMeter,?? ???? Single-Component Tools:mysqlslap,sysbench,Database Test Suite,MySQL Benchmark Suite (sql-bench),Super Smack.??? 第三章 Schema Optimization and Indexing 表定义优化和索引优化(重点章节)??? 1. Choosing Optimal Data Types: ?? ??? ??? ?Sm

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值