select
/*+ index(t1) */
small_vc
from
t1
where
n4 = 2
;
--------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
--------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 400 | 5600 | 127 (1)| 00:00:02 |
| 1 | TABLE ACCESS BY INDEX ROWID | T1 | 400 | 5600 | 127 (1)| 00:00:02 |
| 2 | BITMAP CONVERSION TO ROWIDS| | | | | |
|* 3 | BITMAP INDEX SINGLE VALUE | T1_I4 | | | | |
--------------------------------------------------------------------------------------
select
small_vc
from
t1
where
n6 = 2
;
-------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
-------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 400 | 5600 | 54 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| T1 | 400 | 5600 | 54 (0)| 00:00:01 |
|* 2 | INDEX RANGE SCAN | T1_I6 | 400 | | 9 (0)| 00:00:01 |
-------------------------------------------------------------------------------------
--> 책과 다름
****** trying bitmap/domain indexes ******
Access Path: index (AllEqRange)
Index: T1_I4
resc_io: 1.00 resc_cpu: 8171
ix_sel: 0.04 ix_sel_with_filters: 0.04
Cost: 1.00 Resp: 1.00 Degree: 0
Access path: Bitmap index - accepted
Cost: 126.57 Cost_io: 126.27 Cost_cpu: 1062271 Sel: 0.04
Not believed to be index-only
Best:: AccessPath: IndexBitmap
Cost: 126.57 Degree: 1 Resp: 126.57 Card: 400.00 Bytes: 0
Access Path: index (AllEqRange)
Index: T1_I6
resc_io: 54.00 resc_cpu: 573408
ix_sel: 0.04 ix_sel_with_filters: 0.04
Cost: 54.16 Resp: 54.16 Degree: 1
****** trying bitmap/domain indexes ******
Best:: AccessPath: IndexRange Index: T1_I6
Cost: 54.16 Degree: 1 Resp: 54.16 Card: 400.00 Bytes: 0
- 강좌 URL : http://www.gurubee.net/lecture/4419
- 구루비 강좌는 개인의 학습용으로만 사용 할 수 있으며, 다른 웹 페이지에 게재할 경우에는 출처를 꼭 밝혀 주시면 고맙겠습니다.~^^
- 구루비 강좌는 서비스 제공을 위한 목적이나, 학원 홍보, 수익을 얻기 위한 용도로 사용 할 수 없습니다.