DBAsupport.com Forums - Powered by vBulletin
Results 1 to 10 of 24

Thread: Very slow INTERSECT under 9i - optimizer mistake?

Threaded View

  1. #8
    Join Date
    Sep 2003
    Location
    UK
    Posts
    4

    EXPLAIN PLAN results

    Thank you for your responses. I looked at the execution plan. I would have expected the combined query to largely inherit original subquery plans and combine them using UNIQUE SORT, etc. Instead, the first subquery subplan is completely rewritten (the second subquery subplan is identical).

    From looking at the new plan I could understand why it runs slow - but why Oracle decides to behave so differently with effectively identical SQL code? What causes it and how could I prevent it?

    The plans for independent subqueries and a combined query are attached. I realize that without seeing the original SQL they are not great use, nevertheless they illustrate the point. In a big combined query the optimizer suddenly decides to go for a very simple recursive condition check on several large tables.

    Cheers,
    Toly

    Anatoli Krassavine
    Intellidos Limited
    Attached Files Attached Files
    Anatoli Krassavine
    [email protected]
    Intellidos Limited

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width