Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Learning more about and reading 10053 trace files

RE: Learning more about and reading 10053 trace files

From: Christian Antognini <Christian.Antognini_at_trivadis.com>
Date: Tue, 5 Sep 2006 20:56:00 +0200
Message-ID: <F2C9CCA71510B442AF71446CAE8AEBAF6156F9@MSXVS04.trivadis.com>


Brandon

Just for completeness...

> Yes, the DISTINCT (sort & filter) happens at the end, but the
> difference is that a DISTINCT requires all rows to be fetched,
> sorted and filtered before it can return the first row - so it can't
> return the first row until it has processed all rows.

Be careful, not in all situations all data need to be processed before the first row is returned. Here an example...

SQL> select distinct ctr_code from addresses;

Execution Plan



SELECT STATEMENT Optimizer=ALL_ROWS
  SORT (UNIQUE NOSORT)
    INDEX (FULL SCAN) OF 'ADR_CTR_CODE' (INDEX) Cheers,
Chris
--
http://www.freelists.org/webpage/oracle-l
Received on Tue Sep 05 2006 - 13:56:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US