上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页
摘要: InnoDB和MyISAM使用了b+树和b树作为索引组织的方式。 在这些结构中,索引的深度是个关键因素。当查找被索引了的行时,查找会在索引上从根到叶子执行。 假设这些索引不在内存中,索引的深度就代表了查找的(IO)代价。当然,我们希望大部分的查找都在内存中执行(被cache在内存中)。尽管如此,索引 阅读全文
posted @ 2016-03-14 15:17 sunss 阅读(1152) 评论(0) 推荐(0) 编辑
摘要: 虽然MySQL里面有rename database的语法,但是只是在5.1.7 to 5.1.23提供的,其他版本并没有,要想做rename操作该如何做呢?percona提供了一个shell #!/bin/bash # Copyright 2013 Percona LLC and/or its af 阅读全文
posted @ 2016-03-07 10:52 sunss 阅读(4786) 评论(0) 推荐(0) 编辑
摘要: 下午在学习如何用keynote写出高大上的文档,看到公司内的一个妹纸洋洋洒洒的写了好多篇文章,顿时觉得自己的知识面狭窄,文科女和理科女的差别,从我嘴里半天吐不出一个富有诗情画意的词句来,那么还是脚踏实地的学keynote吧,培养自己的艺术细胞,看看刚才说的文科女的妹纸写的文章:)http://hei 阅读全文
posted @ 2016-02-16 17:31 sunss 阅读(276) 评论(0) 推荐(0) 编辑
摘要: Index Condition Pushdown (ICP) is an optimization for the case where MySQL retrieves rows from a table using an index(ICP是MySQL用索引从表中获取数据的一种优化). Witho 阅读全文
posted @ 2016-02-15 18:06 sunss 阅读(701) 评论(0) 推荐(0) 编辑
摘要: InnoDB has a good source of information about its status which can be requested every time you need to know “what’s up” with that in your environment. 阅读全文
posted @ 2016-02-14 16:33 sunss 阅读(474) 评论(0) 推荐(0) 编辑
摘要: Because I do a lot of Performance Tuning gigs I get often in contact with these status variables. In the beginning I had a problem to understand them 阅读全文
posted @ 2016-01-19 16:52 sunss 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 概览uptimedmesg | tailvmstat 1mpstat -P ALL 1pidstat 1iostat -xz 1free -msar -n DEV 1sar -n TCP,ETCP 1topuptime$ uptime 23:51:26 up 21:31, 1 user, loa... 阅读全文
posted @ 2016-01-06 18:11 sunss 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 昨天,我drop一个表的时候在checking permissions花了20s+,这个时间花在哪里了呢?经常查找发现我的配置文件innodb_file_per_table=1的,innodb需要遍历LRU链表,并且丢弃属于这个表的表空间里面的页。如果innodb buffer pool很大的话,需... 阅读全文
posted @ 2015-12-29 17:48 sunss 阅读(1479) 评论(0) 推荐(0) 编辑
摘要: PhysicalDisk\Avg. Disk Queue Length 磁盘队列长度阀值:Should not be higher than the number of spindles plus two不应高于纺锤波+ 2的数量意义:在选定磁盘运行的,队列里面的读和写请求平均个数PhysicalD... 阅读全文
posted @ 2015-12-21 14:30 sunss 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 我们碰到有order by 或者group by,或者distinct语句的时候,如果查看执行计划,通常会看到using filesort的字眼,那么这个filesort是不是真是文件排序呢?其实不然,filesort和file没有一点关系,只是不好的代名词。如果一个语句不能在索引上完成排序,那么就... 阅读全文
posted @ 2015-12-21 14:24 sunss 阅读(817) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页