Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: UNION: SQL-tuning
Hi Andrei,
You haven't given us much to go on.
No version, no sample code, no execution plans.
Best I can do is play pin the pony tail.
Note that UNION will perform sort operations to eliminate duplicate rows (whereas UNION ALL will not). Perhaps the cost of retrieving the combination of result sets is such that Oracle is saying, "nah, bugger it, may as well read it all".
More details, less generalistic guess work.
Cheers
Richard
"Andrei Romazanov" <romazanov.andrei_at_gfos.de> wrote in message
news:alpddu$1rt0js$1_at_ID-70985.news.dfncis.de...
> Hello all,
>
> I have performance-problem in a UNION.
> Normally I can separated optimize the parts from UNION,
> in this case however show both part-SELECTS good performance,
> but in UNION suddenly appears FULL TABLE SCAN. Could someone explain to
me
> this
> behavior of the Optimizer?
>
> Thank you in advance
>
> Andrei
>
>
Received on Thu Sep 12 2002 - 02:30:53 CDT