Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 263419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:36:01+00:00 2026-05-11T22:36:01+00:00

I have inherited a somewhat messy query that I am working on refactoring to

  • 0

I have inherited a somewhat messy query that I am working on refactoring to be performant.

During this process, one of the things I did due to personal preference was change all of the ANSI-99 join syntax from the “inner join” and “left outer join” statements to be predicates in the query. I noticed two very strange things that I would appreciate an explanation on.

  1. Changing the joins from the “INNER JOIN…” syntax has changed the explain plan. With the ANSI 99 syntax, oracle did full table scans on the columns that were being joined. After changing the join syntax, it now does predicate pushing. Why would the join syntax change the explain plan?
  2. The predicate pushing on the inline view has actually slowed down the query by a very significant margin. The query that was running (prior to altering the joins) at around 3 sec. Now it is taking 9 sec. To be honest, I fairly new to reading explain plans so it’s entirely possible that the restructuring of the query has slowed it down for a different reason. But ultimately my question is: “Is it possible for predicate pushing on indexed columns to slow down a query so substantially? If so, why?”

Thanks for the replies, and my apologies if this isn’t very clear…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T22:36:01+00:00Added an answer on May 11, 2026 at 10:36 pm

    Is it possible for predicate pushing on indexed columns to slow down a query so substantially? If so, why?

    Sure it is.

    As a rule, predicate pushing makes the optimizer to choose NESTED LOOPS instead of HASH JOIN.

    This can be slower if the condition is not selective.

    This query

    SELECT  *
    FROM    table1, t1
            (
            SELECT  /*+ NO_PUSH_PRED */
                    *
            FROM    table2 t2
            WHERE   t2.col1 = :value1
            ) t2o
    WHERE   t2o.col2 = t1.col2
    

    most probably will build a hash table over the contents of table1 and will probe the rows returned by the view against this hash table (or vice versa).

    This query:

    SELECT  *
    FROM    table1, t1
            (
            SELECT  /*+ PUSH_PRED */
                    *
            FROM    table2 t2
            WHERE   t2.col1 = :value1
            ) t2o
    WHERE   t2o.col2 = t1.col2
    

    will use the NESTED LOOPS and an index on (t2.col1, t2.col2) if it’s defined.

    The latter is more efficient if col2 is selective on table2, and less efficient if it’s not.

    My educated guess is that is exactly what’s happening in your case.

    If you post your queries and execution plans, I probably will be able to tell more.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've inherited a rather large and somewhat messy codebase, and have been tasked with
I have inherited an application that logs the results of certain daily commands that
I have inherited a DotNetNuke codebase and have come across areas that have included
I have inherited some code: Process p = new ProcessBuilder(/bin/chmod, 777, path).start(); p.waitFor(); Basically,
I have inherited a reasonable sized ASP.net solution that has no automated tests. The
I have inherited a project, that provides an order form to a customer. The
Okay, so I have this page, which has one Ajax:AsyncFileUploader also some other ajax
We have inherited an application (Java-based, running on WebLogic 10.3.5) that makes extensive use
I have a button with class MyButton defined somewhat like this: .MyButton{ color:black; background:white;}
I have inherited a code base that makes use of the Castle Windsor IoC

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.