Re: O9i: general index question
- From: Andreas Mosmann <mosmann@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 28 Mar 2007 22:14:46 +0200
sybrandb@xxxxxxxxx schrieb am 28.03.2007 in <3v7l03hnh3bgc08tmhkj46u3653m1a8mpo@xxxxxxx>:
On Wed, 28 Mar 2007 17:57:21 +0200, Andreas Mosmann
<mosmann@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
function based index on id_masterI tried it but Oracle did not use this Index :(
decode(id_master,'0','0',null)
CREATE INDEX MyIndex ON TREES (DECODE(IDPARKING,'P0',NULL,IDPARKING))
because I only want to have trees on PARKINGs (about 0.01%)
NULL values are not indexed.now I try to replace R0 by NULL
Obviously you where clause would need the above predicate for the FBISorry, I did not understand correctly. The WHERE clause is still the following:
to be used (and query_rewrite should be set to true)
WHERE IDPARKING = 'P0' so I would hope it finds out that MyIndex fits. with query_rewrite I played never before, I will try it out.
Thank you
Andreas Mosmann
--
wenn email, dann AndreasMosmann <bei> web <punkt> de
.
- References:
- O9i: general index question
- From: Andreas Mosmann
- Re: O9i: general index question
- From: Mark D Powell
- Re: O9i: general index question
- From: Andreas Mosmann
- Re: O9i: general index question
- From: sybrandb
- O9i: general index question
- Prev by Date: Re: XE cursor handling
- Next by Date: Re: O9i: general index question
- Previous by thread: Re: O9i: general index question
- Next by thread: Re: O9i: general index question
- Index(es):
Relevant Pages
|
|