Forcing index usage...
- From: Volker Hetzer <volker.hetzer@xxxxxxxx>
- Date: Mon, 24 Apr 2006 18:00:58 +0200
Hi!
(9.2.0.6, linux)
I'm in a situation where oracle spatial doesn't use a domain index even if I use the index hint.
In fact, as long as the spatial operator (sdo_relate) is the only predicate in the where
clause, the index gets used, so the index is okay.
But as soon as I add more predicates or nest the query into another one,
the index doesn't get used and the query takes forever.
Is there anything I can do apart from the hint?
I'm seriously considering splitting my query into two, the first one
putting the spatial related results into a temporary table and the second one
doing the rest with the intermediate result.
Any thoughts on that?
Lots of Greetings!
Volker
.
- Follow-Ups:
- Re: Forcing index usage...
- From: Jonathan Lewis
- Re: Forcing index usage...
- From: HansF
- Re: Forcing index usage...
- From: Robert Klemme
- Re: Forcing index usage...
- Prev by Date: Re: Is this possible with "execute immediate"
- Next by Date: Re: Is this possible with "execute immediate"
- Previous by thread: Is this possible with "execute immediate"
- Next by thread: Re: Forcing index usage...
- Index(es):
Relevant Pages
|