explain 可以查看sql语句的执行情况,可以看到每个条件扫描的行数,当系统内需要使用SQL查询时,通过explain看下该语句的性能。1.索引通常被用于提高WHERE条件的数据行匹配或者执行联结操作时匹配其它表的数据行的搜索速度。所以我们选择索引的列也通常选择出现在WHERE子句、join子句...
分类:
数据库 时间:
2015-03-10 13:56:16
阅读次数:
147
angular All About Angular 2.0 Posted by?Rob Eisenberg?on??November 6th, 2014. Have questions about the strategy for Angular 2.0? This is the place. In the following article I‘ll explain the maj...
分类:
其他好文 时间:
2015-03-06 17:29:59
阅读次数:
274
转: How to use GitHub with Android StudioThis article will explain how to use GitHub with Android Studio.Firstly, let’s login togithub.comand create a....
分类:
移动开发 时间:
2015-03-06 15:46:12
阅读次数:
250
1、设置计划
explain plan for
select * from ( select * from dun_search_view where 1=1 and (( salename='陈永智' and xsqy='广州办事处') or (','||fzuserid||',' like '%,6839951,%')) ) where rownum <= 30;
2...
分类:
数据库 时间:
2015-03-03 13:36:55
阅读次数:
186
Insert title here Poem Poem Never increase, beyond what is necessary, the number of entities required to explain anything 甩灯歌互动哥覅和首个...
分类:
其他好文 时间:
2015-02-27 11:50:46
阅读次数:
161
explain显示了mysql如何使用索引来处理select语句以及连接表。可以帮助选择更好的索引和写出更优化的查询语句。使用方法,在select语句前加上explain就可以了:如:explainselectsurname,first_nameforma,bwherea.id=b.idEXPLAI...
分类:
数据库 时间:
2015-02-27 11:43:56
阅读次数:
148
怎样看懂Oracle的执行计划一、什么是执行计划An explain plan is a representation of the access path that is taken when a query is executed within Oracle.二、如何访问数据At the phy...
分类:
数据库 时间:
2015-02-26 14:38:27
阅读次数:
163
近期监控数据库,发现以下语句跑得很慢,原来运行计划走了导致笛卡尔积,来看以下语句:SQL> explain plan for 2 SELECT COUNT(*) 3 FROM "GD_FS"."TZZ_SJ_DEV_DISC_79073" "A2", 4 "GD_FS"...
分类:
其他好文 时间:
2015-02-21 12:00:10
阅读次数:
124
http://blog.csdn.net/robo23/article/details/42616067
文章里简单地比较了EXPLAIN PLAN FOR和SET AUTOTRACE的方法来打印执行计划。
但偶然的机会我发现SET AUTOTRCE尽管有真实去执行SQL,但打印出来的执行计划并不一定准确。看如下实验:
T表有10万条记录,A字段有普通索引,A字段的选择性很好:
SQL> ...
分类:
其他好文 时间:
2015-02-20 09:46:31
阅读次数:
133
一、优化概述二、查询与索引优化分析1性能瓶颈定位Show命令慢查询日志explain分析查询profiling分析查询2索引及查询优化三、配置优化1) max_connections2) back_log3) interactive_timeout4) key_buffer_size...
分类:
数据库 时间:
2015-02-19 06:26:37
阅读次数:
322