Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Execution time is Jumping with UNION.

ankFeb 12 2016 — edited Feb 18 2016

I am working on SQL performance tuning. I came across a peculiar behavior with UNION. I have two SELECT statements. Each one is taking less than a minute. They are big selects with more than 15 tables joined and some of the tables are 20 GB in size. But when I combine these two with union the execution time is jumping to 4 hours.  What could be the reason?  Please provide your views on this.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2016
Added on Feb 12 2016
8 comments
3,048 views