Performance of JOIN vs. singleton SELECTs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Riley
    New Member
    • Aug 2007
    • 1

    Performance of JOIN vs. singleton SELECTs

    DB2 v8 for z/OS
    Data for each employee is spread across 12 tables.
    We are accessing 12 tables with each table having from zero to one row per employee, except the first table has a required row for each employee.

    What is the percentage of improvement if we do a JOIN of all 12 tables using
    LEFT OUTER JOIN
    vs. coding 12 singleton SELECTs ?

    What if we have 5 tables in the above example ?
  • kalexin
    New Member
    • Apr 2007
    • 20

    #2
    There is no simple answer to this question. In theory there will be significant improvement if you have one statement as opposed to 12 statements, but there's no real way we can figure out a percentage without more information. Table statistics, parallelism on/off, etc etc.

    Comment

    Working...