Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
oceanbase
obdeploy
提交
97895924
O
obdeploy
项目概览
oceanbase
/
obdeploy
1 年多 前同步成功
通知
7
Star
73
Fork
132
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
obdeploy
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
未验证
提交
97895924
编写于
12月 14, 2022
作者:
R
Rongfeng Fu
提交者:
GitHub
12月 14, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tuning (#154)
上级
7a8232ed
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
22 addition
and
24 deletion
+22
-24
plugins/tpcc/4.0.0.0/analyze.sql
plugins/tpcc/4.0.0.0/analyze.sql
+10
-11
plugins/tpch/3.1.0/run_test.py
plugins/tpch/3.1.0/run_test.py
+2
-2
plugins/tpch/4.0.0.0/analyze.sql
plugins/tpch/4.0.0.0/analyze.sql
+8
-9
plugins/tpch/4.0.0.0/run_test.py
plugins/tpch/4.0.0.0/run_test.py
+2
-2
未找到文件。
plugins/tpcc/4.0.0.0/analyze.sql
浏览文件 @
97895924
set
_force_parallel_query_dop
=
{
cpu_total
}
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'bmsql_warehouse'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'GLOBAL'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
bmsql_warehouse
partition
(
bmsql_warehouse
)
compute
statistics
for
all
columns
size
auto
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'bmsql_district'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'GLOBAL'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
bmsql_district
partition
(
bmsql_district
)
compute
statistics
for
all
columns
size
auto
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'bmsql_customer'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'GLOBAL'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
bmsql_customer
partition
(
bmsql_customer
)
compute
statistics
for
all
columns
size
auto
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'bmsql_new_order'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'GLOBAL'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
bmsql_new_order
partition
(
bmsql_new_order
)
compute
statistics
for
all
columns
size
auto
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'bmsql_oorder'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'GLOBAL'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
bmsql_oorder
partition
(
bmsql_oorder
)
compute
statistics
for
all
columns
size
auto
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'bmsql_order_line'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'GLOBAL'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
bmsql_order_line
partition
(
bmsql_order_line
)
compute
statistics
for
all
columns
size
auto
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'bmsql_stock'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'GLOBAL'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
bmsql_stock
partition
(
bmsql_stock
)
compute
statistics
for
all
columns
size
auto
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'bmsql_history'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'GLOBAL'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
bmsql_history
partition
(
bmsql_history
)
compute
statistics
for
all
columns
size
auto
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'bmsql_config'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'AUTO'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
bmsql_config
compute
statistics
for
all
columns
size
auto
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'bmsql_item'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'AUTO'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
bmsql_item
compute
statistics
for
all
columns
size
auto
;
\ No newline at end of file
\ No newline at end of file
plugins/tpch/3.1.0/run_test.py
浏览文件 @
97895924
...
@@ -227,10 +227,10 @@ def run_test(plugin_context, db, cursor, *args, **kwargs):
...
@@ -227,10 +227,10 @@ def run_test(plugin_context, db, cursor, *args, **kwargs):
end_time
=
time
.
time
()
end_time
=
time
.
time
()
cost
=
end_time
-
start_time
cost
=
end_time
-
start_time
total_cost
+=
cost
total_cost
+=
cost
stdio
.
print
(
'[%s]: end %s, cost %.
1
fs'
%
(
time
.
strftime
(
'%Y-%m-%d %H:%M:%S'
,
time
.
localtime
(
end_time
)),
path
,
cost
))
stdio
.
print
(
'[%s]: end %s, cost %.
2
fs'
%
(
time
.
strftime
(
'%Y-%m-%d %H:%M:%S'
,
time
.
localtime
(
end_time
)),
path
,
cost
))
if
not
ret
:
if
not
ret
:
raise
Exception
(
ret
.
stderr
)
raise
Exception
(
ret
.
stderr
)
stdio
.
print
(
'Total Cost: %.
1
fs'
%
total_cost
)
stdio
.
print
(
'Total Cost: %.
2
fs'
%
total_cost
)
return
plugin_context
.
return_true
()
return
plugin_context
.
return_true
()
except
KeyboardInterrupt
:
except
KeyboardInterrupt
:
stdio
.
stop_loading
(
'fail'
)
stdio
.
stop_loading
(
'fail'
)
...
...
plugins/tpch/4.0.0.0/analyze.sql
浏览文件 @
97895924
set
_force_parallel_query_dop
=
{
cpu_total
}
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'lineitem'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'GLOBAL'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
lineitem
partition
(
lineitem
)
compute
statistics
for
all
columns
size
auto
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'orders'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'GLOBAL'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
orders
partition
(
orders
)
compute
statistics
for
all
columns
size
auto
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'partsupp'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'GLOBAL'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
partsupp
partition
(
partsupp
)
compute
statistics
for
all
columns
size
auto
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'part'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'GLOBAL'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
part
partition
(
part
)
compute
statistics
for
all
columns
size
auto
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'customer'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'GLOBAL'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
customer
partition
(
customer
)
compute
statistics
for
all
columns
size
auto
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'supplier'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'GLOBAL'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
supplier
partition
(
supplier
)
compute
statistics
for
all
columns
size
auto
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'nation'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'AUTO'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
nation
compute
statistics
for
all
columns
size
auto
;
call
dbms_stats
.
gather_table_stats
(
'test'
,
'region'
,
degree
=>
{
cpu_total
}
,
granularity
=>
'AUTO'
,
method_opt
=>
'FOR ALL COLUMNS SIZE AUTO'
);
analyze
table
region
compute
statistics
for
all
columns
size
auto
;
\ No newline at end of file
\ No newline at end of file
plugins/tpch/4.0.0.0/run_test.py
浏览文件 @
97895924
...
@@ -243,10 +243,10 @@ def run_test(plugin_context, db, cursor, *args, **kwargs):
...
@@ -243,10 +243,10 @@ def run_test(plugin_context, db, cursor, *args, **kwargs):
end_time
=
time
.
time
()
end_time
=
time
.
time
()
cost
=
end_time
-
start_time
cost
=
end_time
-
start_time
total_cost
+=
cost
total_cost
+=
cost
stdio
.
print
(
'[%s]: end %s, cost %.
1
fs'
%
(
time
.
strftime
(
'%Y-%m-%d %H:%M:%S'
,
time
.
localtime
(
end_time
)),
path
,
cost
))
stdio
.
print
(
'[%s]: end %s, cost %.
2
fs'
%
(
time
.
strftime
(
'%Y-%m-%d %H:%M:%S'
,
time
.
localtime
(
end_time
)),
path
,
cost
))
if
not
ret
:
if
not
ret
:
raise
Exception
(
ret
.
stderr
)
raise
Exception
(
ret
.
stderr
)
stdio
.
print
(
'Total Cost: %.
1
fs'
%
total_cost
)
stdio
.
print
(
'Total Cost: %.
2
fs'
%
total_cost
)
return
plugin_context
.
return_true
()
return
plugin_context
.
return_true
()
except
KeyboardInterrupt
:
except
KeyboardInterrupt
:
stdio
.
stop_loading
(
'fail'
)
stdio
.
stop_loading
(
'fail'
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录