今天有一开发同学找到我,说查询SQL中倒序报错,不明原因,于是奔赴工位现场研究情况。果然,只要SQL中带有desc 就会报错,而ASC没问题。 哪怕desc放在句首用作explain也会报错。报错信息为语法错误...检查了sql-mode发现是空,看来不是这个原因,那问题出在哪呢?测试库的环境是保存...
分类:
数据库 时间:
2014-08-04 13:51:27
阅读次数:
266
1 查看查询计划 db.user.find({"username":"xxx"}) .explain() db.doc.find({"es_y":"2014"}).explain() { ?"cursor" : "BasicCursor", ?"isMultiKey" : false, ?"n" : 0, ?"nscannedObjects" : 1, ?"nscann...
分类:
数据库 时间:
2014-08-03 12:56:45
阅读次数:
268
– 查询(或更新,删除,可以转换为查询)没有用到索引
这是最基础的步骤,需要对sql执行explain查看执行计划中是否用到了索引,需要重点关注type=ALL, key=NULL的字段。
– 在索引字段上施加函数
to_char(gmt_created, ‘mmdd’) = ...
分类:
数据库 时间:
2014-08-02 20:40:24
阅读次数:
282
Mysql 查询运行过程 大致分为4个阶段吧:语法分析(sql_parse.cc)>>sql_resolver.cc # JOIN.prepare生成逻辑查询plan(sql_optimizer.cc)>># JOIN.optimize生成物理查询plan(sql_planner.cc)run th...
分类:
数据库 时间:
2014-08-02 12:28:33
阅读次数:
239
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example, "A man, a plan, a canal: Pan...
分类:
其他好文 时间:
2014-08-01 22:31:42
阅读次数:
208
Introduction with Jenkins iOSIf you are new to continuous integration for mobile platforms then you are in the right place. This article will explain ...
分类:
移动开发 时间:
2014-08-01 15:51:01
阅读次数:
538
题目:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: ....
分类:
编程语言 时间:
2014-08-01 10:27:11
阅读次数:
310
IntroductionThis article will explain six important concepts: stack, heap, value types, reference types, boxing, and unboxing. This article starts exp...
分类:
Web程序 时间:
2014-07-31 23:10:30
阅读次数:
397
Below tables contains contant you need to consider while planning for a CDB.ActionConsiderations for a CDBAdditional InformationPlan the tables and in...
分类:
数据库 时间:
2014-07-31 20:06:07
阅读次数:
401
Spark SQL 物理计划到 RDD 的计算过程实现。...
分类:
数据库 时间:
2014-07-29 22:08:02
阅读次数:
656