Re: Cost Based Optimizier
From: Gene Gurevich <geneg_at_umich.edu>
Date: 1996/08/05
Message-ID: <Pine.SOL.3.91.960805104951.8960A-100000_at_qix.rs.itd.umich.edu>#1/1
Date: 1996/08/05
Message-ID: <Pine.SOL.3.91.960805104951.8960A-100000_at_qix.rs.itd.umich.edu>#1/1
You can ran COST-based optimizer in two modes FIRST_ROWS and ALL_ROWS (default). FIRST_ROWS mode will try to minimize the time before the FIRST row of the output is found, while ALL_ROWS will try to minimize the time until ALL rows are found. In MY experience FIRST_ROWS almost always result in better performance (often better then RULE-based, almost always better then ALL_ROWS). You can switch from ALL-ROWS to FIRST_ROWS (and back)) by typing
ALTER SESSION SET OPTIMIZER_GOAL = first_rows;
Give it a try.
Gene Received on Mon Aug 05 1996 - 00:00:00 CEST