码迷,mamicode.com
首页 >  
搜索关键字:explain    ( 1254个结果
MYSQL查询优化:show profile
Query Profiler是MYSQL自带的一种query诊断分析工具,通过它可以分析出一条SQL语句的性能瓶颈在什么地方。通常我们是使用的explain,以及slow query log都无法做到精确分析,但是Query Profiler却可以定位出一条SQL语句执行的各种资源消耗情况,比如CP...
分类:数据库   时间:2015-09-07 12:46:28    阅读次数:239
mysql之explain
话说工欲善其事,必先利其器。今天就简单介绍下EXPLAIN。内容导航idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra环境准备MySQL版本:创建测试表CREATE TABLE people( id bigint auto_inc...
分类:数据库   时间:2015-09-07 00:36:11    阅读次数:312
mysql高效索引之覆盖索引
概念如果索引包含所有满足查询需要的数据的索引成为覆盖索引(Covering Index),也就是平时所说的不需要回表操作判断标准使用explain,可以通过输出的extra列来判断,对于一个索引覆盖查询,显示为using index,MySQL查询优化器在执行查询前会决定是否有索引覆盖查询注意1、覆...
分类:数据库   时间:2015-09-02 00:00:50    阅读次数:477
不具备数学和算法知识能否成为优秀的开发人员
To explain why, I'm gonna assume you have little to no programming background and try to use an analogy. I apologise in advance if this answer becomes  long.Say you wanted to build a small toy house w...
分类:编程语言   时间:2015-08-31 23:42:10    阅读次数:240
mysql processlist 提示 Writing to net解决
mysql提示Writing to net解决最近发现某一个数据库cpu占用比较过。超过200%了。首先查看数据库慢日志,设定慢日志5秒,基本上没有产生日,没有超过5秒的语句。show full processlist; 后发现几条select有几个表查询需要1-2秒,explain select ...
分类:数据库   时间:2015-08-28 22:52:09    阅读次数:215
Dependency injection
I've just seen the question "how to explain dependency injection to a 5-year-old" on stackoverflow.com,and there is one of the answers below.If you ha...
分类:其他好文   时间:2015-08-20 18:12:08    阅读次数:95
To new is C++; To malloc is C; To mix them is sin (混淆C++中的new和C中的malloc是一种犯罪)
Introduction One of the most common questions that get asked during interviews for C++ programmers is to explain the differences between using malloc and using new. It’s also a fairly common question...
分类:编程语言   时间:2015-08-19 11:16:58    阅读次数:139
Privacy Policy
BeyondGame has adopted this privacy policy (“Privacy Policy”) to explain how BeyondGame collects, stores, and uses the information collected in connec...
分类:其他好文   时间:2015-08-17 21:27:54    阅读次数:94
Hive的Explain命令
Hive的Explain命令,用于显示SQL查询的执行计划。Hive查询被转化成序列阶段(这是一个有向无环图)。这些阶段可能是mapper/reducer阶段,或者是Metastore或文件系统的操作,如移动和重命名的阶段。例子hive> explain > select * from stu...
分类:其他好文   时间:2015-08-17 21:08:43    阅读次数:286
mysql性能优化-慢查询分析、优化索引和配置
目录 一、优化概述 二、查询与索引优化分析 1性能瓶颈定位 Show命令 慢查询日志 explain分析查询 profiling分析查询 ? 2索引及查询优化 三、配置优化 1) ? ? ?max_connections 2) ? ? ?back_log 3) ? ? ...
分类:数据库   时间:2015-08-14 15:57:19    阅读次数:310
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!