14.6.11 Configuring Optimizer Statistics for InnoDB  配置优化统计信息用于InnoDB

14.6.11.1 Configuring Persistent Optimizer Statistics Parameters
14.6.11.2 Configuring Non-Persistent Optimizer Statistics Parameters
14.6.11.3 Estimating ANALYZE TABLE Complexity for InnoDB Tables 这个章节描述了如何配置持久化和非持久化优化统一用于InnoDB表。 持久化统计信息是在MySQL 5.6.2中介绍,在MySQL 5.6.6中默认为 (innodb_stats_persistent=ON). mysql> show variables like '%innodb_stats_persistent%';
+--------------------------------------+-------+
| Variable_name | Value |
+--------------------------------------+-------+
| innodb_stats_persistent | ON |
| innodb_stats_persistent_sample_pages | 20 |
+--------------------------------------+-------+
2 rows in set (0.00 sec) 持久化优化统计信息是存在的在服务器重启后,允许更稳定的执行计划和更加一致性的查询性能。 持久化优化统计信息也提供了控制和灵活性额外的好处 mysql> show variables like '%innodb_stats_auto_recalc%';
+--------------------------+-------+
| Variable_name | Value |
+--------------------------+-------+
| innodb_stats_auto_recalc | ON |
+--------------------------+-------+
1 row in set (0.00 sec) 1. 你可以使用innodb_stats_auto_recalc 配置选项来控制是否统计信息是自动更新在表有大量的改变后 2.你可以使用STATS_PERSISTENT, STATS_AUTO_RECALC, and STATS_SAMPLE_PAGES 子句在CREATE TABLE and ALTER TABLE statements 来配置优化器统计信息对于单个表 3.你可以查询优化器统计数据在mysql.innodb_table_stats and mysql.innodb_index_stats tables 4.你可以查询 mysql.innodb_table_stats and mysql.innodb_index_stats tables的last_update列 来确认统计信息是否是最新的 5. 你可以收到修改mysql.innodb_table_stats and mysql.innodb_index_stats tables 来强制 一个特定的查询优化器执行计划或者测试替代的计划不需要修改数据库 非持久化统计信息是在每次服务器重启后被清掉 ,重新计划在表的下一次访问。 作为一个结果, 不同的评估被产生当重新计算统计信息, 导致不同的选项来在执行计划和查询性能的变化 这个章节也提供了信息关于评估ANALYZE TABLE的复杂性, 这可能是有用的当尝试完成一个平衡在准备的统计信息和ANALYZE TABLE 执行时间

14.6.11 Configuring Optimizer Statistics for InnoDB 配置优化统计信息用于InnoDB的更多相关文章

  1. 11.8 iotop:动态显示磁盘I/O统计信息

    iotop命令是一款实时监控磁盘I/O的工具,但必须以root用户的身份运行.使用iotop命令可以很方便地查看每个进程使用磁盘I/O的情况. 最小化安装系统一般是没有这个命令的,需要使用yum命令额 ...

  2. MySQL InnoDB配置统计信息

    MySQL InnoDB配置统计信息 1. 配置持久化(Persistent)统计信息参数 1.1 配置自动触发更新统计信息参数 1.2 配置每张表的统计参数 1.3 配置InnoDB优化器统计信息的 ...

  3. 14.8.11 Physical Structure of an InnoDB Index InnoDB Index 的物理结构

    14.8.11 Physical Structure of an InnoDB Index InnoDB Index 的物理结构 所有的InnoDB indexes 是 B-trees Index r ...

  4. 14.6.8 Configuring the InnoDB Master Thread IO Rate 配置InnoDB 主线程IO 速率:

    14.6.8 Configuring the InnoDB Master Thread IO Rate 配置InnoDB 主线程IO 速率: 主线程 在InnoDB 是一个线程 执行各种任务在后台. ...

  5. 14.6.7 Configuring the Number of Background InnoDB IO Threads 配置InnoDB IO Threads的数量

    14.6.7 Configuring the Number of Background InnoDB IO Threads 配置InnoDB IO Threads的数量 InnoDB 使用后台线程来服 ...

  6. 14.6.6 Configuring Thread Concurrency for InnoDB 配置线程并发

    14.6.6 Configuring Thread Concurrency for InnoDB 配置线程并发 InnoDB 使用操作系统线程来处理请求(用户事务) 事务可能执行很多次在它们提交或者回 ...

  7. 14.6.5 Configuring InnoDB Change Buffering 配置InnoDB Change Buffering

    14.6.5 Configuring InnoDB Change Buffering 配置InnoDB Change Buffering 当插入,更新,和删除操作在表上执行, 索引列的值(特别是 se ...

  8. 14.6.4 Configuring the Memory Allocator for InnoDB 配置InnoDB 内存分配器

    14.6.4 Configuring the Memory Allocator for InnoDB 配置InnoDB 内存分配器 当InnoDB 被开发时,内存分配提供了操作系统和 run-time ...

  9. 14.6.2 Configuring InnoDB for Read-Only Operation

    14.6.2 Configuring InnoDB for Read-Only Operation 配置InnoDB只读操作 你可以查询InnoDB 表MySQL 数据目录是一个只读介质,通过启用 - ...

随机推荐

  1. scp文件到远端机器问题总结及解决方法

    今天在download服务器日志时遇到了很多问题, 顺便把相应的解决步骤记录下方便以后查看. #把文件copy到192.168.1.102的服务器上 scp -r local_dir readonly ...

  2. Migration of ASP.NET app from IIS6 to IIS7 (7.5)

    For many of us familiar problem. You developing applications under IIS6 and you're about to move the ...

  3. JS获取URL的参数

    function request(paras) { var url = location.href; , url.length).split("&"); var paraO ...

  4. 第三篇:web之前端之JavaScript基础

    前端之JavaScript基础   前端之JavaScript基础 本节内容 JS概述 JS基础语法 JS循环控制 ECMA对象 BOM对象 DOM对象 1. JS概述 1.1. javascript ...

  5. 动态添加JS文件到页面

    /*** ** 功能: 加载外部JS文件,加载完成后执行回调函数callback ***/ var utools = { config: { id: "", url: " ...

  6. android中ListView控件

    今天学习了ListView控件和页面跳转,下面大致介绍下: 第一步:创建显示内容的文件vlist.xml: <?xml version="1.0" encoding=&quo ...

  7. Activity是如何挂载Pargment的Day35

    Activity是如何挂载Pargment的Day35 mebile5.0 1.Fragment优化早上任务 思路 一个主Activity 短信群发器 中秋给朋友发短信,都能够加上他们的姓名,这样他们 ...

  8. 导出文本、表格、图像到PDF格式文件中(学习整理)

    1.测试例子: 需要导入的外部jar包: 相关API http://www.coderanch.com/how-to/javadoc/itext-2.1.7/com/lowagie/text/pack ...

  9. ES 中文分词

    一.大名鼎鼎的中文插件IK的安装配置 1. 在插件目录中建立IK的目录 mkdir $ES_HOME/plugins/analysis-ik 2. 下载IK 的类库jar 文件到IK目录 cd $ES ...

  10. ES的安装运行

    一.安装,运行 1. 检查java的版本环境 Elasticsearch依赖Java,在书写本文档的时候,推荐使用Oracle JDK 1.8.0_20 或 1.7.0_55以后的版本. 在安装Ela ...