摘要:
1、Adaptive Hash Indexes 定义If a table fits almost entirely in main memory, the fastest way to perform queries on it is to use hash indexes. InnoDB has ... 阅读全文
摘要:
mysql的内存分配,是调优的重中之重,所以必须搞清楚内存是怎么分配的mysql> show global variables like '%buffer%';+-------------------------+------------+| Variable_name | Va... 阅读全文
摘要:
看到有很多,的总结一下,比较适合有一定经验的PHPer 平时喜欢哪些php书籍及博客?CSDN、虎嗅、猎云 js闭包是什么,原型链了不了解? for与foreach哪个更快? php鸟哥是谁?能不能讲一下php执行原理? php加速器有哪些?apc、xcache.....能不能讲一下它的加速原理,与 阅读全文
摘要:
一、order by的原理1、利用索引的有序性获取有序数据当查询语句的 order BY 条件和查询的执行计划中所利用的 Index 的索引键(或前面几个索引键)完全一致,且索引访问方式为 range,ref 或者 index 的时候,MySQL 可以利用索引顺序而直接取得已经排好序的数据。这种方式... 阅读全文
摘要:
1、doublewrite buffer(mysql官方的介绍) InnoDB uses a novel file flush technique called doublewrite. Before writing pages to the data files, InnoDB first wri... 阅读全文