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: What's your opinion: ALL_ROWS vs FIRST_ROWS

Re: What's your opinion: ALL_ROWS vs FIRST_ROWS

From: Stephane Faroult <sfaroult_at_oriole.com>
Date: Tue, 29 Oct 2002 14:03:47 -0800
Message-ID: <F001.004F6D8E.20021029140347@fatcity.com>


"Armstead, Michael A" wrote:
>
> We're moving from RBO to CBO.
>
> For those of you who use CBO, what mode do you use FIRST_ROWS or ALL_ROWS?
> And why?
>
> My thinking is if it's a database where most of the querying is done on
> small sets of records, then we may want to use FIRST_ROWS. On the other
> hand, if our database is used to generate sizable reports, we might use
> ALL_ROWS.
>
> I also understand that we can always change it per session (with alter
> session) and per query (with hints).
>
> Michael Armstead
> Principal Database Administrator, OCP-Certified
> World Wide Corporate IT Database Administration
> GlaxoSmithKline
>

Michael,

   FIRST_ROWS is when you have a nervous user waiting for his/her results - OLTP. ALL_ROWS is when you want all the job to be done as fast as possible - Batch. This is the broad picture. Now, if your queries are used to generate HTML pages, this is no longer OLTP - it's batch since you cannot return the page before the query is completed.

HTH, Stephane Faroult
Oriole Software

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriole.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Oct 29 2002 - 16:03:47 CST

Original text of this message

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