Best Substitute For Union ALL
Hi All,
Funny It may seem cos I am asking this without any referance...
Whenever you look at a querry and see a lots of UNION ALL in them..
What is the other option that that should come into your mind immediately...Cos I believe UNION ALL takes lots of time to execute..
Thanks in advance,
Paddy
Re: Best Substitute For Union ALL
Quote:
Originally posted by paddy04
Hi All,
Funny It may seem cos I am asking this without any referance...
Whenever you look at a querry and see a lots of UNION ALL in them..
What is the other option that that should come into your mind immediately...Cos I believe UNION ALL takes lots of time to execute..
Thanks in advance,
Paddy
Not sure if am 100% correct, but I think Set Operations in Oracle do not use indexes by default. May be that's the cause for the exhorbitant time consumed. Why not use joins between the tables if they are constraint-related?