?????. DB2 ? XpertMon ??? ???!
? ????????? DB ??????.
????? DB2 UDB V8(FP 2) ?? ?? ??? Table Data? Sampling ? ? ??
??? ?? ????? ?????.
???? Table Data? Sampling?? ???? ??? ??? ?? ? ? ??? ???
Sampling ????? ????? ???, ??? Row ??? Block ??? ? ?? ???
???? ??? ???? ??? ??? ? ?? ?????.
???? ?? ????? ???, ???? ?? ?? ???? ??? ??? ???
??????. ???? ????? ?????.
Sampling Table Data
Sampling ??
Row ??? Block ??? ? ?? ??? ????.
???? ??? Row ?? Sampling ??? ?? x Row? ??? ??, ???
Block ?? Sampling ??? ?? y Page? ??? ???.
????? ???? ????? select??? Tablesample??? ??? ???? ???.
???? Row ??? Block ??? ??? ??? ????.
Row ??? ???? Select …. tablesample BERNOULLI ???? ????,
Block ??? ???? Select…. tablessample SYSTEM ???? ???? ???.
SYSTEM ???? ??? Optimizer? Row ?? ?? Block ??? ? ?????? ??? ?
Block ?? ???? ???? ??? ???? ???.
?? ????? Block ?? ????? ??? I/O? ? Page? ????? ? ????.
???? ?? ??
- ??? ? : EMP ( ?? 4,194,304)
- ??? : IBMDEFAULTBP ( 1MB)
?? ? EMP ????? D11 ??? ?? ???? ??? ???? ?? ??? ???
???? Query? ??? ????.
Row ?? Sampling
?? D11 ??? ?? ???? 10%? ???? ???? ???? ??? ???? ??
???? ??? ?? Query? ?? ? ????.
??? (10)? ?? ??? ?? ??? 0 ??? ?? ???? ???. ??? (5)?
?? ??? query? ?? ? ?? ????? ?? ??? ??? ????.
?? ?? ?? ????? ???? ?? ?? ??? ? ?? ??? ????
?? ??? ?? ??? ?? ?? ? ??? ????.
Row ?? Sampling Query? ?? 1 - ??? ??
??? ?? ?? ?? ?? ??? ??? Row ?? Sampling? ???? ??? ?????.
? SQL ?? ??? ??? ?? ?? ???? ?? ?????. ??? ?? ???
???? ???? ??? ?? ?? ??? ???? ?? ?? ?? ??? ????.
??? ?? ?, ?? ?? ? (576,716,800.00) ?? ?? ??? ??? ???? ??
50? ?????. ( ? +0.02 ??)
???? ????? ?? Trade-Off ?? ? ? ????.
Row ?? Sampling Query? ?? 2 - ?? ??? ??
?? ??? ?? ?? ???? Query? ?????? ??? ??? ????.
??? ?? ??? ?? Query ??? ??? ??? ?? ????.
??? ???? ??? ????.
Full select? ??? 576,716,800???, ?? ?? ? ?? ??? ?? ?? 5? ???.
??? ?? ????? Query? 5? ?? ??? ??? ??, ?? ????
?? ?? Row? ??? ???.
Block ?? Sampling
Block ?? ?????? ??? ??? ????.
???? system() ? ?????, 10? ????? ?? Page?? ??????.
100? ?? Page? 100%? ???? ??? ??? ??? ?? 100?? ? ?? ???,
??? ???? ??? ???? ?? ?? ?? ??? ?? ???.
Block ?? Sampling Query? ??
‘select sum(bonus) ..’ Query? ?? system ??? ?? ???? ?? ???????.
Block ?? ?? ???? ????? Row ?? ?? ?????? ?? ????
??? ???? ?? ???? ? ? ????.
XpertMon for DB2 UDB V2
DB ???
Tel : 02-2108-1458
Fax : 02-2108-1459
Mobile : 011-896-6545
E-mail :
hjlee@iteg.co.kr
URL :
http://iteg.co.kr