美文网首页
Oracle未选择使用索引

Oracle未选择使用索引

作者: ilaoke | 来源:发表于2016-01-29 13:25 被阅读21次

http://www.orafaq.com/tuningguide/not%20using%20index.html
http://www.dba-oracle.com/t_oracle_index_hint_syntax.htm

前几天在优化系统,发现有张表查询速度特别慢,但明明是有索引的;查看执行计划后,发现Oracle并没有选择使用索引,而是使用的全表扫描。

Google后发现tuningguide中有篇文章分析了Oracle在何种情况下不使用索引,值得收藏。

最终通过添加index hint,实现了秒查。

相关文章

网友评论

      本文标题:Oracle未选择使用索引

      本文链接:https://www.haomeiwen.com/subject/axujkttx.html