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

Home -> Community -> Usenet -> c.d.o.server -> Re: ordered_hint

Re: ordered_hint

From: <cybotto_at_yahoo.com>
Date: 26 Sep 2005 15:41:18 -0700
Message-ID: <1127774477.991371.19520@g44g2000cwa.googlegroups.com>


One full table scann is often not allone. Using ORDERED clause with some success but can have its draw backs when the execution plan is not cast in stone. It can happen that suddenly is doing much worse after a while. It's likely that the index is cached which makes it fast when running the same query again.

SELECT /*+ ORDERED INDEX(t1 index_name) USE_NL(t1 v1) */ ...

Since with ORDERED it will use a nested loop on t1 and v1. It's not very scalable and it's a little bit of a gamble what is happening inside the view over time.

t1 will always have a full table scan without any hints. Maybe is worth trying to change t1 to an IOT table, so index is already part of t1. Received on Mon Sep 26 2005 - 17:41:18 CDT

Original text of this message

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