Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> About CBO cost in oracle10g
We know ,Oracle compute cost for CBO.
And to NL,we have the below formula:
NL - NESTED LOOP JOIN
join cost = cost of accessing outer table
+ (cardinality of outer table * cost of accessing inner table )
But with Oracle10g,I find all of that is changed: For example:
TOTAL :: CDN: 4 NBLKS: 5 AVG_ROW_LEN: 20 COLUMN: DEPTNO(NUMBER) Col#: 1 Table: DEPT Alias: DEPT Size: 3 NDV: 4 Nulls: 0 Density: 2.5000e-01 Min: 10 Max: 40 No Histogram: #BKT: 1 (1 uncompressed buckets and 2 endpoint values)Index stats
TOTAL :: CDN: 14 NBLKS: 5 AVG_ROW_LEN: 37 COLUMN: DEPTNO(NUMBER) Col#: 8 Table: EMP Alias: EMP Size: 3 NDV: 3 Nulls: 0 Density: 3.3333e-01 Min: 10 Max: 30 No Histogram: #BKT: 1 (1 uncompressed buckets and 2 endpoint values)Index stats
I want to know where the Best NL cost come from? And how can we get the '9' here?
Thanks in advance. Received on Fri May 21 2004 - 04:25:53 CDT