sybase IQ HG 索引问题
时间:2010-11-23
来源:互联网
今天遇到一个问题,和大家讨论一下:
说明:
SQL: select col1,sum(col2-col3) from table
where col4 <= 20101122
group by col1
环境: 在col4上建立了HG索引,满足条件col4<=20101122 的数据有4000W行, 表的总数据量也差不多4000W多一点;
问题:执行速度很慢,大概25m左右,并且在执行中有这样一句话:HG index selected due to index cutoff heuristic
请问题这是什么问题?能详细解释一下 HG index selected due to index cutoff heuristic 的意思吗?
执行计划如下:
Elapsed time 0:27:33.525910
Condition 1 (Invariant) (t.cal_date_id <= 20101122)
Condition 1 Selectivity 1.00000000
Condition 1 Usefulness 5.00000000
Condition 1 Distincts in Range 3262
Condition 1 Distincts in Inverted Range 0
Condition 1 Elapsed time 0:00:00.028046
Condition 1 Rows remaining after condition 39295819
Condition 1 Index HG dm.common_anal_fact.ASIQ_IDX_T3233_C_CAL_DATE_ID_HG
Condition 1 Note HG index selected due to index cutoff heuristic
Condition 1 Note Optimized by inversion
Projection Per Row 18 columns (161 bytes)
Output Vector 18 entries (232 data bytes)
说明:
SQL: select col1,sum(col2-col3) from table
where col4 <= 20101122
group by col1
环境: 在col4上建立了HG索引,满足条件col4<=20101122 的数据有4000W行, 表的总数据量也差不多4000W多一点;
问题:执行速度很慢,大概25m左右,并且在执行中有这样一句话:HG index selected due to index cutoff heuristic
请问题这是什么问题?能详细解释一下 HG index selected due to index cutoff heuristic 的意思吗?
执行计划如下:
Elapsed time 0:27:33.525910
Condition 1 (Invariant) (t.cal_date_id <= 20101122)
Condition 1 Selectivity 1.00000000
Condition 1 Usefulness 5.00000000
Condition 1 Distincts in Range 3262
Condition 1 Distincts in Inverted Range 0
Condition 1 Elapsed time 0:00:00.028046
Condition 1 Rows remaining after condition 39295819
Condition 1 Index HG dm.common_anal_fact.ASIQ_IDX_T3233_C_CAL_DATE_ID_HG
Condition 1 Note HG index selected due to index cutoff heuristic
Condition 1 Note Optimized by inversion
Projection Per Row 18 columns (161 bytes)
Output Vector 18 entries (232 data bytes)
作者: xiaojiang520033 发布时间: 2010-11-23
请打开index advisor和query detail选项,
并把完整的query plan发上来。
并把完整的query plan发上来。
作者: mdkii 发布时间: 2010-11-24
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28