Re: query order clause and indices
- From: "David" <thump@xxxxxxxxxxxxxxxx>
- To: "Mark Richard" <mrichard@xxxxxxxxxxxxxxxxx>
- Date: Wed, 8 Dec 2004 14:33:32 -0800 (PST)
I tried adding the index and using the order by with predicate additiona,
but LIO's then jump back up to 50,000 abd sorts is performed:
create index rep.junk on rep.items(MASTERY_SKILL_LEVEL) online;
AND item0_.mastery_skill_level > 0
ORDER BY item0_.mastery_skill_level)
--
..
David
Also, there are scenario's where Oracle can
> see an order by clause and recognise that a particular index has already
> ordered the results that way - in this scenario is doesn't always need to
> perform the sort operation. The beauty of this approach is that it works
> efficiently normally but even if something happens to the index then your
> result set is still valid - it will just take longer.
--
http://www.freelists.org/webpage/oracle-l
- References:
- query order clause and indices
- From: David
- Re: query order clause and indices
- From: Mark Richard
Other related posts:
- » query order clause and indices
- » Re: query order clause and indices
- » Re: query order clause and indices
- » Re: query order clause and indices
- query order clause and indices
- From: David
- Re: query order clause and indices
- From: Mark Richard