Skip to content

Commit cfc2c29

Browse files
committed
将各个章节拆分到小文件中
1 parent 97dc5dc commit cfc2c29

File tree

5 files changed

+69
-54
lines changed

5 files changed

+69
-54
lines changed

license.adoc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[appendix]
2+
== 版权声明
3+
4+
++++
5+
<pre>
6+
include::LICENSE[]
7+
</pre>
8+
++++

mysql-notes.adoc

+3-54
Original file line numberDiff line numberDiff line change
@@ -27,37 +27,10 @@ include::analytics.html[]
2727

2828
:sectnums!:
2929

30-
[preface]
31-
== 前言
32-
33-
*本笔记还没有完成,现在还处于 Alpha 版,后续还会持续更新。*
34-
35-
=== 友情支持
36-
37-
如果您觉得这个笔记对您有所帮助,看在D瓜哥码这么多字的辛苦上,请友情支持一下,D瓜哥感激不尽,😜
38-
39-
[cols="2*^",frame=none]
40-
|===
41-
| image:images/alipay.jpeg[title="支付宝", alt="支付宝", width="60%"] | image:images/wxpay.png[title="微信", alt="微信", width="65%"]
42-
|===
43-
44-
=== 官网及版本库
45-
46-
本文档的版本库托管在 Github 上,另外单独发布。
47-
48-
“地瓜哥”博客网:: http://www.diguage.com/ 。D瓜哥的个人博客。欢迎光临,不过,内容很杂乱,请见谅。不见谅,你来打我啊,😂😂
49-
本文档官网:: http://notes.diguage.com/mysql/ 。为了方便阅读,这里展示了处理好的文档。阅读请点击这个网址。
50-
本文档版本库:: https://github.com/diguage/mysql-notes 。欢迎大家发送 PR。
51-
52-
=== 特别提醒
53-
54-
有个需要特别注意的地方,这里重点提出:**本文档部分的内容可能会过时!**
55-
56-
这个文档绝大部分是参考《高性能 MySQL》写的,可以说就是一个读书笔记。书中反复强调,绝大部分内容是针对 MySQL 5.5 书写的。随着 MySQL 的发展,本文档部分的内容可能会过时。所以,文档如果有错误之处,还请以相应版本的官方文档为准!
30+
include::preface.adoc[]
5731

5832
:sectnums:
5933

60-
// == MySQL 索引结构与查询优化
6134
include::schema-data-type.adoc[]
6235

6336
include::high-performance-index.adoc[]
@@ -68,30 +41,6 @@ include::explain-in-detail.adoc[]
6841

6942
include::explain-in-practice.adoc[]
7043

44+
include::references.adoc[]
7145

72-
[appendix]
73-
== 参考资料
74-
75-
* https://book.douban.com/subject/23008813/[高性能MySQL] -- 很明显,这个文档就是这本书的读书笔记。😆
76-
* https://book.douban.com/subject/24708143/[MySQL技术内幕] -- 和上面的那本参考看更爽。
77-
* https://book.douban.com/subject/26419771/[数据库索引设计与优化] -- 第一本书引用了这本书,去年刚刚翻译过来,评分比第一本都高,9.4,惊为神作,不可不读。
78-
* http://blog.jobbole.com/100349/[如果有人问你数据库的原理,叫他看这篇文章]
79-
* http://blog.codinglabs.org/articles/theory-of-mysql-index.html[MySQL索引背后的数据结构及算法原理]
80-
* http://bluehawk.monmouth.edu/rclayton/web-pages/s10-305-503/treaps.html[Treaps: CS 305 & 503 Lecture notes]
81-
* http://www.csie.ntnu.edu.tw/~u91029/Order.html[演算法筆記 - Order]
82-
* http://blog.csdn.net/tianxueer/article/details/2689117[硬盘内部硬件结构和工作原理详解]
83-
* http://elf8848.iteye.com/blog/1731274[磁盘性能指标--IOPS 理论]
84-
* http://harrywu304.blog.163.com/blog/static/845660320101024111941414/[硬件性能解析(1)-存储金字塔]
85-
* http://www.cnblogs.com/zuoxiaolong/p/computer3.html[深入理解计算机系统(1.3)---金字塔形的存储设备、操作系统的抽象概念]
86-
* http://wdxtub.com/vault/csapp-10.html[深入理解计算机系统 第 10 课 Memory Hierarchy]
87-
* http://www.daenotes.com/electronics/digital-electronics/magnetic-bubble-memories[Magnetic Bubble Memories]
88-
* https://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/10_MassStorage.html[Operating Systems: Mass-Storage Structure]
89-
90-
[appendix]
91-
== 版权声明
92-
93-
++++
94-
<pre>
95-
include::LICENSE[]
96-
</pre>
97-
++++
46+
include::license.adoc[]

preface.adoc

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[preface]
2+
== 前言
3+
4+
*本笔记还没有完成,现在还处于 Alpha 版,后续还会持续更新。*
5+
6+
=== 友情支持
7+
8+
如果您觉得这个笔记对您有所帮助,看在D瓜哥码这么多字的辛苦上,请友情支持一下,D瓜哥感激不尽,😜
9+
10+
[cols="2*^",frame=none]
11+
|===
12+
| image:images/alipay.jpeg[title="支付宝", alt="支付宝", width="60%"] | image:images/wxpay.png[title="微信", alt="微信", width="65%"]
13+
|===
14+
15+
=== 官网及版本库
16+
17+
本文档的版本库托管在 Github 上,另外单独发布。
18+
19+
“地瓜哥”博客网:: http://www.diguage.com/ 。D瓜哥的个人博客。欢迎光临,不过,内容很杂乱,请见谅。不见谅,你来打我啊,😂😂
20+
本文档官网:: http://notes.diguage.com/mysql/ 。为了方便阅读,这里展示了处理好的文档。阅读请点击这个网址。
21+
本文档版本库:: https://github.com/diguage/mysql-notes 。欢迎大家发送 PR。
22+
23+
=== 特别提醒
24+
25+
有个需要特别注意的地方,这里重点提出:**本文档部分的内容可能会过时!**
26+
27+
这个文档绝大部分是参考《高性能 MySQL》写的,可以说就是一个读书笔记。书中反复强调,绝大部分内容是针对 MySQL 5.5 书写的。随着 MySQL 的发展,本文档部分的内容可能会过时。所以,文档如果有错误之处,还请以相应版本的官方文档为准!

references.adoc

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[appendix]
2+
== 参考资料
3+
4+
* https://book.douban.com/subject/23008813/[高性能MySQL] -- 很明显,这个文档就是这本书的读书笔记。😆
5+
* https://book.douban.com/subject/24708143/[MySQL技术内幕] -- 和上面的那本参考看更爽。
6+
* https://book.douban.com/subject/26419771/[数据库索引设计与优化] -- 第一本书引用了这本书,去年刚刚翻译过来,评分比第一本都高,9.4,惊为神作,不可不读。
7+
* http://blog.jobbole.com/100349/[如果有人问你数据库的原理,叫他看这篇文章]
8+
* http://blog.codinglabs.org/articles/theory-of-mysql-index.html[MySQL索引背后的数据结构及算法原理]
9+
* http://bluehawk.monmouth.edu/rclayton/web-pages/s10-305-503/treaps.html[Treaps: CS 305 & 503 Lecture notes]
10+
* http://www.csie.ntnu.edu.tw/~u91029/Order.html[演算法筆記 - Order]
11+
* http://blog.csdn.net/tianxueer/article/details/2689117[硬盘内部硬件结构和工作原理详解]
12+
* http://elf8848.iteye.com/blog/1731274[磁盘性能指标--IOPS 理论]
13+
* http://harrywu304.blog.163.com/blog/static/845660320101024111941414/[硬件性能解析(1)-存储金字塔]
14+
* http://www.cnblogs.com/zuoxiaolong/p/computer3.html[深入理解计算机系统(1.3)---金字塔形的存储设备、操作系统的抽象概念]
15+
* http://wdxtub.com/vault/csapp-10.html[深入理解计算机系统 第 10 课 Memory Hierarchy]
16+
* http://www.daenotes.com/electronics/digital-electronics/magnetic-bubble-memories[Magnetic Bubble Memories]
17+
* https://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/10_MassStorage.html[Operating Systems: Mass-Storage Structure]

styles.sh

+14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
#!/bin/bash
22

33
html_file_name=mysql-notes.html
4+
out_file_name=mysql-notes.html
5+
6+
while getopts "i:o:" arg #选项后面的冒号表示该选项需要参数
7+
do
8+
case $arg in
9+
i)
10+
html_file_name=$OPTARG
11+
;;
12+
o)
13+
out_file_name=$OPTARG
14+
;;
15+
esac
16+
done
17+
418
style_file_name=styles.css
519

620
gsed=`which sed`

0 commit comments

Comments
 (0)