mysql source命令导入sql文件效率分析和索引整理
Query OK, 24918 rows affected (0.90 sec)
Records: 24918 Duplicates: 0 Warnings: 0
Query OK, 24923 rows affected (2.26 sec)
Records: 24923 Duplicates: 0 Warnings: 0
Query OK, 24924 rows affected (2.74 sec)
Records: 24924 Duplicates: 0 Warnings: 0
Query OK, 24920 rows affected (0.94 sec)
Records: 24920 Duplicates: 0 Warnings: 0
Query OK, 24920 rows affected (2.03 sec)
Records: 24920 Duplicates: 0 Warnings: 0
Query OK, 24919 rows affected (1.19 sec)
Records: 24919 Duplicates: 0 Warnings: 0
Query OK, 7671 rows affected (0.67 sec)
Records: 7671 Duplicates: 0 Warnings: 0
导入24919条记录,时间只需要1.19s,速度很快,原因是什么?
mysql技术内幕
高性能mysql
http://wangqiaowqo.iteye.com/blog/1137589
http://www.cnblogs.com/hustcat/archive/2009/10/28/1591648.html
http://www.2cto.com/database/201201/117456.html
http://www.php100.com/html/webkaifa/database/Mysql/2010/0409/4279.html
http://laozhao.blog.51cto.com/blog/25213/7644
http://blog.csdn.net/turkeyzhou/article/details/8182636
http://blog.csdn.net/fullsail/article/details/8945449
http://he-wen.iteye.com/blog/1244221
http://www.51cto.com/specbook/52/12911.htm
http://opq149766320.iteye.com/blog/561183
http://www.cnblogs.com/rollenholt/articles/2424531.html
'%j%'无法使用索引的原因是不知道查找哪个元素,无法使用b-tree索引。不知道j前面是什么,只能全文扫描,不能查找哪个、哪些元素。
但是'jq%'可以匹配,可以比较key值大小。通过jq比较大小。
http://blog.csdn.net/hguisu/article/details/7786014
http://blog.csdn.net/weege/article/details/6526512
http://www.jb51.net/article/36184.htm介绍B-树和B+树的查找和原理
http://www.cnblogs.com/mailingfeng/archive/2012/09/26/2704344.html
目前大部分数据库系统及文件系统都采用B-Tree或其变种B+Tree作为索引结构