|
原帖由 〇〇 于 2011-5-12 18:40 发表 ![]()
为什么我启用了分区内并行,反而更慢了
468.879329 seconds 482.459168
3.456943 seconds 4.283617
35.196633 seconds 49.522005
24.756155 seconds 25.135826
27.720584 seconds 30.382384
103.166410 seconds 100.084318
40.526446 seconds 47.550015
34.452728 seconds 40.439229
88.036224 seconds 87.582887
30.404406 seconds 36.627290
6.502055 seconds 7.831795
38.336033 seconds 33.335061
49.450705 seconds 66.658736
32.759258 seconds 32.816498
36.062827 seconds 36.917765
8.496194 seconds 19.588469
27.698119 seconds 23.122384
167.040236 seconds 234.650377
40.308232 seconds
587.439039 seconds
61.395391 seconds
60.756332 seconds
启用步骤
[db2inst1@750_ora1a:/home/db2inst1]#>db2batch -d tpch -f /arch/IBM/q01-22_f.txt > /tmp/q01-22_f_zip.log
[db2inst1@750_ora1a:/home/db2inst1]#>[db2inst1@750_ora1a:/home/db2inst1]#>[db2inst1@750_ora1a:/home/db2inst1]#>
[db2inst1@750_ora1a:/home/db2inst1]#>db2 get dbm cfg|grep PARA
Enable intra-partition parallelism (INTRA_PARALLEL) = NO
[db2inst1@750_ora1a:/home/db2inst1]#>db2 update dbm cfg using INTRA_PARALLEL YES
DB20000I The UPDATE DATABASE MANAGER CONFIGURATION command completed
successfully.
[db2inst1@750_ora1a:/home/db2inst1]#>db2 get dbm cfg|grep PARA
Enable intra-partition parallelism (INTRA_PARALLEL) = YES
[db2inst1@750_ora1a:/home/db2inst1]#>db2 get dbm cfg|grep DEGR
Maximum query degree of parallelism (MAX_QUERYDEGREE) = ANY
[db2inst1@750_ora1a:/home/db2inst1]#>db2stop force
05/12/2011 17:14:57 0 0 SQL1064N DB2STOP processing was successful.
SQL1064N DB2STOP processing was successful.
[db2inst1@750_ora1a:/home/db2inst1]#>db2start
05/12/2011 17:15:04 0 0 SQL1063N DB2START processing was successful.
SQL1063N DB2START processing was successful.
[db2inst1@750_ora1a:/home/db2inst1]#>db2expln -d tpch -q "select count(*) from tpch.nation,tpch.region" -t
DB2 Universal Database Version 9.7, 5622-044 (c) Copyright IBM Corp. 1991, 2009
Licensed Material - Program Property of IBM
IBM DB2 Universal Database SQL and XQUERY Explain Tool
DB2 Universal Database Version 9.7, 5622-044 (c) Copyright IBM Corp. 1991, 2009
Licensed Material - Program Property of IBM
IBM DB2 Universal Database SQL and XQUERY Explain Tool
******************** DYNAMIC ***************************************
==================== STATEMENT ==========================================
Isolation Level = Cursor Stability
Blocking = Block Unambiguous Cursors
Query Optimization Class = 5
Partition Parallel = No
Intra-Partition Parallel = Yes (Bind Degree = ANY )
SQL Path = "SYSIBM", "SYSFUN", "SYSPROC", "SYSIBMADM",
"DB2INST1"
Statement:
select count(*)
from tpch.nation, tpch.region
Intra-Partition Parallelism Degree = 48
Section Code Page = 1208
等了一晚上也不出结果,
用fore application all终止,发现结果已经输出,还挂在那里干什么? |
|