Can someone please help me understand the numbers from this example in the Oracle 9i Tuning Guide?
I think i understand the access path, but the numbers dont make sense to me. The example says the RANGE SCAN is doen 76563 times to get 11432983 rows, but isnt the driver of that NESTED LOOPS the previous NESTED LOOPS which had 76575 rows in its results set?Code:For example, in the following explain plan, the last step is a very unselective range scan that is executed 76563 times, accesses 11432983 rows, throws away 99% of them, and retains 76563 rows. Why access 11432983 rows to realize that only 76563 rows are needed?
Example 9-1 Looking for Throw-Away in an Explain Plan
Rows Execution Plan
-------- ----------------------------------------------------
12 SORT AGGREGATE
2 SORT GROUP BY
76563 NESTED LOOPS
76575 NESTED LOOPS
19 TABLE ACCESS FULL CN_PAYRUNS_ALL
76570 TABLE ACCESS BY INDEX ROWID CN_POSTING_DETAILS_ALL
76570 INDEX RANGE SCAN (object id 178321)
76563 TABLE ACCESS BY INDEX ROWID CN_PAYMENT_WORKSHEETS_ALL
11432983 INDEX RANGE SCAN (object id 186024)
Very confused :o
