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

Home -> Community -> Usenet -> c.d.o.misc -> Re: good guess for final record number in SELECT?

Re: good guess for final record number in SELECT?

From: Volker Apelt <gq437x_at_yahoo.de>
Date: 26 Feb 2003 21:31:50 +0100
Message-ID: <lgy942kcll.fsf@mu.biosolveit.local>


danielroy10_at_hotmail.com (Daniel Roy) writes:

> A good answer to your question depends significantly on the select
> statement being issued. If your tables and indexes have been analyzed
> recently (i.e. you use CBO), have you thought of using the data in
> user_tables (NUM_ROWS) and user_indexes (DISTINCT_KEYS)? This might
> allow you to at least get a high-level idea on the number of rows
> returned.

Using user_tables and user_indexes is an interesting idea, but the result tables will be a small sub set of some huge tables which are restricted by some WHERE clauses.

But, thank you it is somthing to think about.

Volker

-- 
Volker Apelt                   
Received on Wed Feb 26 2003 - 14:31:50 CST

Original text of this message

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