|
〇〇 发表于 2012-10-28 19:57 ![]()
贴个现成的脚本吧
TPC-H的测试脚本很简单, 就把标准的建表语句加cluster primary key, 如:
比如:
create table NATION
(
N_NATIONKEY int not null,
N_NAME char(25) not null,
N_REGIONKEY int not null,
N_COMMENT varchar(152) not null,
cluster primary key(n_nationkey)
);
然后, 把内存适当调大,选择OLAP模式:
MEMORY_POOL = 2000 #memory pool size in Megabyte
BUFFER = 11000 #initial system buffer size in Megabytes
RECYCLE = 800 #system RECYCLE buffer size in Megabytes
MAX_BUFFER = 11000 #maximum system buffer size in Megabytes
OLAP_FLAG = 1 #OLAP flag, 1 means enable olap
ENABLE_MONITOR = 0 #If the value is 1, can use dynamic performance tables
PHC_MODE_ENFORCE = 4 #join mode
OO兄, 你有空试试64bit 版本 |
|