-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
22 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
set _force_parallel_query_dop = {cpu_total}; | ||
analyze table bmsql_warehouse partition(bmsql_warehouse) compute statistics for all columns size auto; | ||
analyze table bmsql_district partition(bmsql_district) compute statistics for all columns size auto; | ||
analyze table bmsql_customer partition(bmsql_customer) compute statistics for all columns size auto; | ||
analyze table bmsql_new_order partition(bmsql_new_order) compute statistics for all columns size auto; | ||
analyze table bmsql_oorder partition(bmsql_oorder) compute statistics for all columns size auto; | ||
analyze table bmsql_order_line partition(bmsql_order_line) compute statistics for all columns size auto; | ||
analyze table bmsql_stock partition(bmsql_stock) compute statistics for all columns size auto; | ||
analyze table bmsql_history partition(bmsql_history) compute statistics for all columns size auto; | ||
analyze table bmsql_config compute statistics for all columns size auto; | ||
analyze table bmsql_item compute statistics for all columns size auto; | ||
call dbms_stats.gather_table_stats('test', 'bmsql_warehouse', degree=>{cpu_total}, granularity=>'GLOBAL', method_opt=>'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'); | ||
call dbms_stats.gather_table_stats('test', 'bmsql_customer', degree=>{cpu_total}, granularity=>'GLOBAL', method_opt=>'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'); | ||
call dbms_stats.gather_table_stats('test', 'bmsql_oorder', degree=>{cpu_total}, granularity=>'GLOBAL', method_opt=>'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'); | ||
call dbms_stats.gather_table_stats('test', 'bmsql_stock', degree=>{cpu_total}, granularity=>'GLOBAL', method_opt=>'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'); | ||
call dbms_stats.gather_table_stats('test', 'bmsql_config', degree=>{cpu_total}, granularity=>'AUTO', method_opt=>'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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
set _force_parallel_query_dop = {cpu_total}; | ||
analyze table lineitem partition(lineitem) compute statistics for all columns size auto; | ||
analyze table orders partition(orders) compute statistics for all columns size auto; | ||
analyze table partsupp partition(partsupp) compute statistics for all columns size auto; | ||
analyze table part partition(part) compute statistics for all columns size auto; | ||
analyze table customer partition(customer) compute statistics for all columns size auto; | ||
analyze table supplier partition(supplier) compute statistics for all columns size auto; | ||
analyze table nation compute statistics for all columns size auto; | ||
analyze table region compute statistics for all columns size auto; | ||
call dbms_stats.gather_table_stats('test', 'lineitem', degree=>{cpu_total}, granularity=>'GLOBAL', method_opt=>'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'); | ||
call dbms_stats.gather_table_stats('test', 'partsupp', degree=>{cpu_total}, granularity=>'GLOBAL', method_opt=>'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'); | ||
call dbms_stats.gather_table_stats('test', 'customer', degree=>{cpu_total}, granularity=>'GLOBAL', method_opt=>'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'); | ||
call dbms_stats.gather_table_stats('test', 'nation', degree=>{cpu_total}, granularity=>'AUTO', method_opt=>'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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters