百万数据查询优化技巧三十则

http://blog.csdn.NET/fenglibing/article/details/6972339并发 1.对查询进行优化,应尽可能避免全表扫描,首先应考虑在 where 及 order by 涉及的列上创建索引。函数 2.应尽可能避免在 where 子句中对字段进行 null 值判断,不然将致使引擎放弃使用索引而进行全表扫描,如:  select id from t where nu
相关文章
相关标签/搜索