Q 1

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 4

DB2 Universal Database Version 10.5, 5622-044 (c) Copyright IBM Corp.

1991, 2012
Licensed Material - Program Property of IBM
IBM DB2 Universal Database SQL and XQUERY Explain Tool

DB2 Universal Database Version 10.5, 5622-044 (c) Copyright IBM Corp. 1991, 2012
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 = No

SQL Path = "SYSIBM", "SYSFUN", "SYSPROC", "SYSIBMADM",


"DB2INST1"

Statement:

select count(*)
from Attribute_Product_Item_Relation_Old
where (valueidentifier, LanguageId)not in
(select identifier, language_id
from ATTRVAL av inner join ATTRVALDESC AD on av.ATTR_ID =
AD.ATTR_ID and av.ATTRVAL_ID =AD.ATTRVAL_ID inner join
CATENTRYATTR cat ON cat.ATTRVAL_ID =av.ATTRVAL_ID and
cat.ATTRVAL_ID =Av.ATTRVAL_ID and cat.ATTRVAL_ID =
AD.ATTRVAL_ID and cat.ATTRVAL_ID =AD.ATTRVAL_ID)

Section Code Page = 1208

Estimated Cost = 550317696.000000


Estimated Cardinality = 1.000000

Data Stream 1:
| Not Piped
| Access Table Name = DB2INST1.ATTRVAL ID = 3,82
| | #Columns = 3
| | Skip Inserted Rows
| | Avoid Locking Committed Data
| | Currently Committed for Cursor Stability
| | May participate in Scan Sharing structures
| | Scan may start anywhere and wrap, for completion
| | Fast scan, for purposes of scan sharing management
| | Scan can be throttled in scan sharing management
| | Relation Scan
| | | Prefetch: Eligible
| | Lock Intents
| | | Table: Intent Share
| | | Row : Next Key Share
| | Sargable Predicate(s)
| | | Process Build Table for Hash Join
| Hash Join
| | Early Out: Single Match Per Outer Row
| | Estimated Build Size: 87344000
| | Estimated Probe Size: 116768000
| | Access Table Name = DB2INST1.ATTRVALDESC ID = 3,83
| | | #Columns = 3
| | | Skip Inserted Rows
| | | Avoid Locking Committed Data
| | | Currently Committed for Cursor Stability
| | | May participate in Scan Sharing structures
| | | Scan may start anywhere and wrap, for completion
| | | Fast scan, for purposes of scan sharing management
| | | Scan can be throttled in scan sharing management
| | | Relation Scan
| | | | Prefetch: Eligible
| | | Lock Intents
| | | | Table: Intent Share
| | | | Row : Next Key Share
| | | Sargable Predicate(s)
| | | | Process Probe Table for Hash Join
| Hash Join
| | Early Out: Single Match Per Inner Row
| | Estimated Build Size: 7488000
| | Estimated Probe Size: 17456000
| | Bit Filter Size: 204544
| | Access Table Name = DB2INST1.CATENTRYATTR ID = 3,160
| | | Index Scan: Name = DB2INST1.I0001462 ID = 3
| | | | Regular Index (Not Clustered)
| | | | Index Columns:
| | | | | 1: ATTRVAL_ID (Ascending)
| | | #Columns = 1
| | | Skip Inserted Rows
| | | Avoid Locking Committed Data
| | | Currently Committed for Cursor Stability
| | | #Key Columns = 0
| | | | Start Key: Beginning of Index
| | | | Stop Key: End of Index
| | | Index-Only Access
| | | Index Prefetch: Sequential(3393), Readahead
| | | Lock Intents
| | | | Table: Intent Share
| | | | Row : Next Key Share
| | | Sargable Index Predicate(s)
| | | | Process Probe Table for Hash Join
| Insert Into Temp Table ID = t1
| | #Columns = 2
End of Data Stream 1
Access Table Name = DB2INST1.ATTRIBUTE_PRODUCT_ITEM_RELATION_OLD ID = 3,2218
| Index Scan: Name = DB2INST1.PK_ATTRIBUTE_PRODUCT_ITEM_RELATION_OLD ID = 1
| | Regular Index (Not Clustered)
| | Index Columns:
| | | 1: VALUEIDENTIFIER (Ascending)
| | | 2: LANGUAGEID (Ascending)
| #Columns = 2
| Skip Inserted Rows
| Avoid Locking Committed Data
| Currently Committed for Cursor Stability
| #Key Columns = 0
| | Start Key: Beginning of Index
| | Stop Key: End of Index
| Index-Only Access
| Index Prefetch: Sequential(95337), Readahead
| Lock Intents
| | Table: Intent Share
| | Row : Next Key Share
| Residual Predicate(s)
| | #Predicates = 3
| | Access Data Stream 1
| | Access Temp Table ID = t1
| | | #Columns = 2
| | | Relation Scan
| | | | Prefetch: Eligible
| | ALL Subquery
| | | Access Data Stream 1
Aggregation
| Column Function(s)
Return Data to Application
| #Columns = 1

End of section

Optimizer Plan:

Rows
Operator
(ID)
Cost

1
RETURN
( 1)
5.50318e+08
|
1
GRPBY
( 2)
5.50318e+08
|
5.09826e+06
IXSCAN
( 3)
5.50317e+08
/ \---------\
1.01965e+07 97736.2
Index: TBSCAN
DB2INST1 ( 4)
PK_ATTRIBUTE_PRODUCT_ITEM_RELATION_OLD 99770.3
|
97736.2
TEMP
( 5)
99716.4
|
97736.2
HSJOIN
( 6)
99688.7
/ \--\
1.08629e+06 97736.2
IXSCAN HSJOIN
( 7) ( 8)
23548.1 76074.7
| / \
1.08629e+06 3.2253e+06 1.08629e+06
Index: TBSCAN TBSCAN
DB2INST1 ( 9) (10)
I0001462 61859.1 13822.8
| |
3.2253e+06 1.08629e+06
Table: Table:
DB2INST1 DB2INST1
ATTRVALDESC ATTRVAL

You might also like