BLU 的效率问题

db2licm -lProduct name:                     "DB2 Advanced Enterprise Server Edition"License type:                   ...显示全部
db2licm -l
Product name:                     "DB2 Advanced Enterprise Server Edition"
License type:                     "Terabyte"
Expiry date:                      "Permanent"
Product identifier:               "db2aese"
Version information:              "10.5"
Enforcement policy:               "Soft Stop"



数据库启动后, 列表数据访问很慢 (1分钟), 行表数据访问正常(1秒钟), count 倒是很快。

行表

>># time db2 "select * from richard.CMRM_PROD_DIM_Rfetch first 10 rows only with ur"


  10 record(s) selected.



real    0m0.09s

user    0m0.01s

sys     0m0.00s


列表

>># time db2 "select * from richard.CMRM_PROD_DIM fetch first 10 rows only with ur"


10 record(s) selected.


real    0m50.76s

user    0m0.00s

sys     0m0.01s


行表


>># time db2 "select count(1)  from richard.CMRM_PROD_DIM_R  with ur"


1

-----------

   11075304


  1 record(s) selected.



real    3m34.39s

user    0m0.01s

sys     0m0.01s


列表

>># time db2 "select count(1)  from richard.CMRM_PROD_DIM with ur"


1

-----------

   11075304


  1 record(s) selected.



real    0m0.39s

user    0m0.00s

sys     0m0.00s

收起
参与6

查看其它 4 个回答wolfop的回答

wolfopwolfop其它Why should I tell you?
BLU这种列式存储不适合访问多列的情况。列行转换很消耗资源
IT其它 · 2015-04-29
浏览763

回答者

wolfop
其它Why should I tell you?

wolfop 最近回答过的问题

回答状态

  • 发布时间:2015-04-29
  • 关注会员:1 人
  • 回答浏览:763
  • X社区推广