Re: Partial Index Usage Performance Question

From: joel garry <joel-garry_at_home.com>
Date: Tue, 7 Oct 2008 10:48:23 -0700 (PDT)
Message-ID: <9e43993c-1194-49b8-907d-4d332ce9d945@c36g2000prc.googlegroups.com>


On Oct 6, 8:14 am, digory <dig..._at_gmx.net> wrote:
> Hi
>
> I have a table T with columns A, B, C and an index I over all three
> columns. Further, I have a query which uses columns A and B, but not
> C, i.e.
>
> SELECT * FROM T WHERE a = ? AND b = ?
>
> I gather Oracle is able to use index I even though the last column is
> not used. My question is the following: If I write a query like
>
> SELECT * FROM T WHERE a = ? AND b = ? AND c = ?
>
> with a condition for C that, for the data in T, is known to be true
> always, will that query be generally slower or faster than the one
> above, or is there no difference in performance, or does it depend on
> the complexity of the index?
>
> Thanks for a little insight,
> Peter

Think on this one: http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:54694913325497

Are you thinking of dynamic SQL? Or trying to come up with simple rules to code in "performance?"

jg

--
@home.com is bogus.
http://www.infoworld.com/article/08/10/06/40TC-power-myths_1.html
Received on Tue Oct 07 2008 - 12:48:23 CDT

Original text of this message