http://www.oicto.com/mysql-explain-show/目录一、优化概述二、查询与索引优化分析1性能瓶颈定位Show命令慢查询日志explain分析查询profiling分析查询2索引及查询优化三、配置优化1) max_connections2) back_log3)...
分类:
数据库 时间:
2014-11-09 10:57:58
阅读次数:
268
[MySQL优化] -- 如何查找SQL效率地下的原因来源: ChinaUnix博客 日期: 2009.07.20 16:12 (共有条评论)我要评论 查询到效率低的 SQL 语句 后,可以通过 EXPLAIN 或者 DESC 命令获取 MySQL 如何执行 SELECT 语句的信息,包括在 S.....
分类:
数据库 时间:
2014-11-09 08:35:47
阅读次数:
268
http://blog.csdn.net/tianlesoftware/article/details/5827245 如果要分析某条SQL的性能问题,通常我们要先看SQL的执行计划,看看SQL的每一步执行是否存在问题。如果一条SQL平时执行的好好的,却有一天突然性能很差,如果排除了系统资源和阻塞的...
分类:
数据库 时间:
2014-11-08 15:07:55
阅读次数:
306
explain显示了mysql如何使用索引来处理select语句以及连接表。可以帮助选择更好的索引和写出更优化的查询语句。先解析一条sql语句,看出现什么内容EXPLAINSELECTs.uid,s.username,s.name,f.email,f.mobile,f.phone,f.postalc...
分类:
数据库 时间:
2014-11-08 10:27:00
阅读次数:
324
explain显示了mysql如何使用索引来处理select语句以及连接表。可以帮助选择更好的索引和写出更优化的查询语句。使用方法,在select语句前加上explain就可以了:如:explainselectsurname,first_nameforma,bwherea.id=b.idEXPLAI...
分类:
数据库 时间:
2014-11-06 21:49:56
阅读次数:
274
转自:http://www.blogjava.net/persister/archive/2008/10/27/236813.html在 explain的帮助下,您就知道什么时候该给表添加索引,以使用索引来查找记录从而让select 运行更快。如果由于不恰当使用索引而引起一些问题的话,可以运行 an...
分类:
数据库 时间:
2014-11-05 18:51:53
阅读次数:
252
MySQL的explain是各种执行计划选择的结果,如果想看整个执行计划以及对于多种索引方案之间是如何选择的?MySQL5.6中支持这个功能,optimizer_trace这个是mysql的参数,默认是关闭的mysql> set optimizer_trace="enabled=on";Query ...
分类:
数据库 时间:
2014-11-03 14:30:58
阅读次数:
265
1: Explain? how? a? web?? application? work ? A web application resides in the server and servers the client‘s requests over internet. The client? access the web page using? browser from h...
分类:
Web程序 时间:
2014-11-03 11:39:00
阅读次数:
290
(1) OOP and Design Patterns(1.1) Please explain difference among class, interface and abstract class. When you would use it rather than other?FeatureI...
分类:
其他好文 时间:
2014-10-29 19:16:24
阅读次数:
160
Fun with layers这篇文章的有些内容很奇怪,我根本就没有这种现象,所以暂时就这样吧In this post, I’ll explain how to add a border, rounded corners, and drop shadow to any UIView using so...
分类:
其他好文 时间:
2014-10-29 14:27:27
阅读次数:
273