12
返回列表 发新帖
楼主: dingjd

对于一个很大的数据库表,索引正常,但查询时不能利用索引怎么办?

[复制链接]
论坛徽章:
2
授权会员
日期:2007-08-08 11:54:332009新春纪念徽章
日期:2009-01-04 14:52:28
11#
发表于 2007-10-25 14:08 | 只看该作者
建议你删除表的统计分析信息,采用RBO试试看

使用道具 举报

回复
论坛徽章:
2
ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:442011新春纪念徽章
日期:2011-02-18 11:43:35
12#
发表于 2007-10-25 14:11 | 只看该作者
对,直接使用RBO试试

使用道具 举报

回复
论坛徽章:
273
生肖徽章2007版:猪
日期:2008-09-27 09:35:45明尼苏达森林狼
日期:2009-01-12 14:15:09生肖徽章2007版:猪
日期:2009-01-21 16:30:59布鲁克林篮网
日期:2009-03-03 14:42:32圣安东尼奥马刺
日期:2009-03-03 14:44:41生肖徽章2007版:鸡
日期:2009-03-03 21:45:52生肖徽章2007版:牛
日期:2009-03-09 14:03:42生肖徽章2007版:猪
日期:2009-03-10 21:37:00生肖徽章2007版:羊
日期:2009-03-16 10:17:11生肖徽章2007版:虎
日期:2009-03-24 21:26:52
13#
发表于 2007-10-27 10:24 | 只看该作者
关注

使用道具 举报

回复
论坛徽章:
0
14#
发表于 2007-10-27 11:12 | 只看该作者
"我的脚本如下:
select * from tDstDpsData T
where Exists(select 1 from tStkPc where OrgCode=T.OrgCode and PluID=T.PluID and JsCode='2')"

-- Not sure how many rows in table tStkPc, and how many rows satisfy the where clause condition;
-- Make sure all the three columns: OrgCode, PluID and JsCode got indexes;
-- Make sure you did collect the stattistics of the tablle and the indexed column of that table;

-- After above step, please generate the sql explain again, and show us the plan.

Thanks!
zOracleDBA

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表