***** Result of SQL Optimizer *****
Version : HiRDB/Parallel Server VV-RR 4BES
UAP Name : pdsql -----------------------> Is the UAP name correct?
UAP Source : pdsql-21775
Authorization : user1 -----------------------> Is the authorization identifier correct?
--------------------------------------------------------------------------------
Section No : 1
Optimize Time : 2001-01-07 10:59:16.591727 ---> Is the SQL statement execution time correct?
Optimize Mode : COST_BASE_2
SQL Opt Level : 0x00000420(1056) = "PRIOR_NEST_JOIN"(32),"RAPID_GROUPING"(1024)
Add Opt Level : 0x00000003(3) = "COST_BASE_2"(1),"APPLY_HASH_JOIN"(2)
------------> Are the SQL optimization option and extended SQL optimization option optimum?#1
SQL : select T1.C1,T1.C2 from T1,T2,T3
where T1.C1='a' and T1.C2 like '%A'
and T1.C1=T2.C1 and T1.C2=T2.C2 and T2.C3>=1995
and T1.C1=T3.C1 and T1.C2=T3.C2 order by T1.C2
--> Is the SQL statement correct?
Work Table : 3
Total Cost : 3314.567244
----- QUERY ID : 1 -----
Query Type : QUERY LIST(SORT) {LLID1(2)}
Order by Mode : FLOATABLE SORT
FLT Server : 2 (ORDER BY) 2-CLM 1TO1
JOIN
# Join ID : 1 ----------------------------> Are the tables joined in the expected order?
L Table : T1
R Table : T2
Join Type : 2-CLM NESTED LOOPS JOIN(INNER) BROADCAST(FROM L TO R)
-------------> Is it possible to change the inner table's partitioning key to something other than BROADCAST?#2
FLT Server : 0
# Join ID : 2
L Table : T3
R Join ID : 1 LIST{JRLST(1)}
Join Type : 2-CLM HASH JOIN(INNER) 1-CLM HASH(FROM R TO L)
-------------> Is this the expected join method?#3
FLT Server : 0
SCAN
# Table Name : T1
Cost : N (10000000ROW) {T-2962.358541,I-763.682244,AND-766.202330}
RDAREA : NON DIVISION (1RD/1BES) [0x07(7)] ALL
Scan Type : MULTI COLUMNS KEY SCAN
Index Name : X1 (2) (+C2,+C1) --------------> Is this the expected index?
SearchCnd : RANGE(CS-CE) [(MIN,'a '),(MAX,'a ')] (FULL SCAN)
-----------------------------> Is the search range narrowed?#4
KeyCnd : T1.C1='a ' AND T1.C2 like '%A'
# Table Name : T2
Cost : N (20000000ROW) {T-1388.652368,I-408.252884,AND-2647.479838}
RDAREA : 1-CLM FIX HASH(HASH6) (2RD/2BES) [0x07(7),0x0d(13)] ALL
Scan Type : MULTI COLUMNS KEY SCAN
Index Name : X2 (3) (+C1,+C2,+C3)
SearchCnd : RANGE(CS-CE) [(T1.C1,T1.C2,1995),(T1.C1,T1.C2,MAX)]
# Table Name : T3
Cost : N (20000000ROW) {T-1621.172368}
RDAREA : 1-CLM FIX HASH(HASH6)(4RD/2BES)[0x07(7),0x08(8),0x0d(13),0x0e(14)]ALL
Scan Type : TABLE SCAN ------------------> Is this the expected scan type?
|