码迷,mamicode.com
首页 >  
搜索关键字:explain    ( 1254个结果
MongoDB 学习笔记之 索引
索引: #查看执行计划 db.stu.find().explain(); #创建索引(无此列的记录也会创建索引) db.bar.ensureIndex({content: 1}) #查看索引 db.bar.getIndexes() #删除索引 db.bar.dropIndex({content: 1 ...
分类:数据库   时间:2017-08-14 09:59:13    阅读次数:187
4.2 explain 之 select_type
一、查询类型,主要用于区别 普通查询、联合查询、子查询等的复杂查询 二、常用常见的类型 ...
分类:其他好文   时间:2017-08-10 17:06:11    阅读次数:158
字符串的公共前缀对Mysql B+树查询影响回溯分析
年前项目组接微信公众号。上线之后,跟微信相关的用cid列的查询会话的SQL变慢了几十倍!思考这个问题思考了非常久。从出现以来一直是我心头的一个结。cid这一列是建了索引的,普通的cid列更新都没问题,为何仅仅有微信的有问题?同样的前缀又是怎样影响索引的? 分析过程 1.explain下微信cid的查 ...
分类:数据库   时间:2017-08-09 19:08:33    阅读次数:163
3. mysql性能分析
一、mysql query optimizer 二、mysql常见瓶颈 三、使用 explain 分析 sql(后续详细讲到……) ...
分类:数据库   时间:2017-08-09 16:47:05    阅读次数:165
MySQL explain字段解释
1.select_type simple :它表示简单的select,没有union和子查询 dependent union:union依赖外层的查询 dependent subquery:subquery依赖外层的查询 2.type system:表仅有一行,这是const类型的特列,平时不会出现 ...
分类:数据库   时间:2017-08-07 13:38:48    阅读次数:186
mysql 索引长度解释及不使用索引的一种特殊情况
如果两个表关联的字段,在表结构中设置的字符集不一样,即使设置了索引,也无法使用。 详情可参考: https://yq.aliyun.com/articles/69138?spm=5176.100239.bloglist.185.xQpesw 关于mysql explain时,key_len字段的计算 ...
分类:数据库   时间:2017-08-07 11:57:03    阅读次数:210
Normal Equation(正规方程)
Normal Equation Note: [8:00 to 8:44 - The design matrix X (in the bottom right side of the slide) given in the example should have elements x with sub ...
分类:其他好文   时间:2017-08-07 00:22:10    阅读次数:231
mysql-优化一
建立索引 建立索引是优化查询的一种方式,我们通常会对where列上建立相关索引,可以是单列的索引,也可以是复合索引。 加索引要注意 在where、order by的相关列上可以考虑添加索引; 如果where列中已经存在索引,order by列的索引(假设存在)不会被利用(explain显示using ...
分类:数据库   时间:2017-08-06 21:50:01    阅读次数:262
May 27th 2017 Week 21st Saturday
I learned the value of hard work by working hard. 只有真的努力了,才会知道努力的价值。 I remember in the movie, The Dark Knight Rises, there was one impressive line fro ...
分类:其他好文   时间:2017-08-05 17:50:07    阅读次数:149
git 版本演示
Git 版本演示,建议读者直接上线操作试试! 网址:http://onlywei.github.io/explain-git-with-d3/#zen ...
分类:其他好文   时间:2017-08-04 18:17:14    阅读次数:120
1254条   上一页 1 ... 63 64 65 66 67 ... 126 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!