Subject | Re: Same Query - Dirrerent GDBs - Different Plan |
---|---|
Author | rodbracher |
Post date | 2002-10-02T14:24:25Z |
No - that contents.item line can even be removed completely - same
story - but no matter how 'wrong' the SQL is - you'd still expect the
same plan ?
--- In ib-support@y..., Svein Erling Tysvaer
<svein.erling.tysvaer@k...> wrote:
story - but no matter how 'wrong' the SQL is - you'd still expect the
same plan ?
--- In ib-support@y..., Svein Erling Tysvaer
<svein.erling.tysvaer@k...> wrote:
> Nope, what I thought of wouldn't work in this case - I could notforce the
> optimizer to choose the quick plan without explicitly specifyingthe plan.
>be
> But there was one thing that puzzled me in your query. Shouldn't it
> ...myself,
> LEFT OUTER JOIN contents ON (waybill.waybill =
> contents.waybill and contents.item = 1)
> WHERE ...
>
> rather than having contents.item in the WHERE clause? No experience
> but I once read that the right part of a left outer join could onlybe
> limited within the join itself, not in the WHERE clause. I doubtthis would
> be the source of your current problem, but it shouldn't take longto test
> if you still have access to the slow database.
>
> Set
>
> At 08:23 02.10.2002 +0000, Rod Bracher wrote:
>