码迷,mamicode.com
首页 >  
搜索关键字:explain    ( 1254个结果
8 Ways to Become a Better Coder
It’s time to get serious about improving your programming skills. Let’s do it! That’s an easy career improvement goal to give oneself, but “become a k ...
分类:其他好文   时间:2017-07-01 00:11:44    阅读次数:167
mysql性能优化
MYSQL性能优化慢查询分析1)性能瓶颈定位Show命令慢查询日志explain分析查询profiling分析查询2)索引及查询优化3)配置优化MySQL数据库是常见的两个瓶颈是CPU和I/O的瓶颈,CPU在饱和的时候一般发生在数据装入内存或从磁盘上读取数据时候。可以用mpstat,iostat,sar和vmstat来查..
分类:数据库   时间:2017-06-30 12:31:30    阅读次数:266
SERVICE_NAME和SERVICE_NAMES和GLOBAL_DBNAME的各自己定义
tnsnames.ora文件中边SERVICE_NAME的參数值--对于动态注冊和静态注冊。该參数有不同的取值 对于动态注冊: The following pfile/spfile parameters are important when setting the value for SERVICE ...
分类:数据库   时间:2017-06-30 09:45:37    阅读次数:172
优化 gruop by 语句
默认情况下,mysql对所有的gruop by col1,col2...的字段进行排序。如果查询包含group by但用户想要避免排序结果的消耗,则可以指定order by null禁止排序。 explain select payment_date,sum(amount) from payment ...
分类:其他好文   时间:2017-06-29 17:59:51    阅读次数:162
优化 or 语句
mysql 演示数据库:http://downloads.mysql.com/docs/sakila-db.zip 对于 or 语句,如果要利用索引,则 or 之间的每个条件都必须有索引 rental 表索引情况 or查询的前后都有索引列 (使用到了索引) explain select * from ...
分类:其他好文   时间:2017-06-29 10:07:59    阅读次数:204
优化order by 语句
mysql 中排序方式 有序索引顺序扫描直接返回有序数据 explain select customer_id from customer order by store_id\G; 这种方式在使用explain分析查询的时候显示为Using Index,不需要额外的排序,效率较高。 Filesort ...
分类:其他好文   时间:2017-06-28 23:23:25    阅读次数:410
mysql 存在索引但不能使用索引的典型场景
以%开头的LIKE查询不能够利用B-tree索引 explain select * from actor where last_name like '%NI%'\G; explain select * from actor where last_name like 'NI%'\G; 解决办法 先扫描 ...
分类:数据库   时间:2017-06-28 20:41:12    阅读次数:173
mysql中能够使用索引的典型场景
mysql 演示数据库:http://downloads.mysql.com/docs/sakila-db.zip 匹配全值 explain select * from rental where rental_date='2005-05-25 17:22:10' and inventory_id=3 ...
分类:数据库   时间:2017-06-28 13:08:25    阅读次数:231
EXPLAIN sql优化方法(2) Using temporary ; Using filesort
优化GROUP BY语句 默认情况下,MySQL对所有GROUP BY col1,col2...的字段进行排序。这与在查询中指定ORDER BY col1,col2...类似。因此,如果显式包括一个包含相同的列的ORDER BY子句,则对MySQL的实际执行性能没有什么影响。 如果查询包括GROUP ...
分类:数据库   时间:2017-06-27 22:25:44    阅读次数:301
mysql 执行计划分析三看, explain,profiling,optimizer_trace
http://blog.csdn.net/xj626852095/article/details/52767963 step 1 使用explain 查看执行计划, 5.6后可以加参数 explain format=json xxx 输出json格式的信息 step 2 使用profiling详细的 ...
分类:数据库   时间:2017-06-27 20:03:59    阅读次数:207
1254条   上一页 1 ... 67 68 69 70 71 ... 126 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!