Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Bind Peeking with java application
Cristian Cudizio wrote:
> On Mar 12, 11:07 pm, DA Morgan <damor..._at_psoug.org> wrote: >> Cristian Cudizio wrote: >>> On Mar 12, 4:46 pm, DA Morgan <damor..._at_psoug.org> wrote: >>>> Cristian Cudizio wrote:
>>>> Other than the obvious bad design why not do this? >>>> CREATE INDEX <index_name> >>>> ON <table_name> (DECODE(col1, -1, NULL, col1); >>>> If the value is always -1 Oracle is never going to use the index >>>> to find a value of -1 so it is irrelevant that the value is not >>>> indexed. The resulting index will be very small and contain every >>>> non -1 value: According to you none at all. >>>> -- >>>> Daniel A. Morgan >>>> University of Washington >>>> damor..._at_x.washington.edu >>>> (replace x with u to respond) >>>> Puget Sound Oracle Users Groupwww.psoug.org >>> I'm DBA not developer, it seems that application cannot be changed, on >>> some installations >>> there are other values. >>> The problem is that i think that oracle does not make bind peeking >>> during hard parse, >>> i know that bind peeking occurs only first time. >>> If i user litteral values the execution plan is always optimal >>> I think that also index as that suggested by Daniel sometimes may >>> fail. If oracle >>> does Hard parse without bind peeking it does not now that value is <> >>> -1 and so >>> oracle choose to make the full table scan. >>> So i suspect that on eavy load Oracle during hard parse does not make >>> bind peeking >> I think you are deriving conclusions for which I can not think of >> any supporting information and are fixated on bind peeking when it >> is not necessarily relevant to the issue. >> >> And your statement "I think that also index as that suggested by Daniel >> sometimes may fail." ridiculous but I am willing to listen to why you >> think this is the case. >> >> I suggest that you stop looking at a specific issue/solution and focus >> on the business problem. What is it? >> -- >> Daniel A. Morgan >> University of Washington >> damor..._at_x.washington.edu >> (replace x with u to respond) >> Puget Sound Oracle Users Groupwww.psoug.org > > Now my boss > asks me: "why the customer has been blocked?" And i've no other answer > than "Oracle 10.2 is worst than oracle 9.2 and 10.1".
What Joel said ... your initial assumption is highly likely to be incorrect.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Tue Mar 13 2007 - 14:41:19 CDT
![]() |
![]() |