IBM Support

PH15783: INEFFICIENT ACCESS PATH CHOSEN WHEN JOIN ORDER OF MULTIPLE SMALLTABLES HAVE A JOIN RELATION WITH A HUGE TABLE AND DATA IS SKEWED

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Inefficient access path chosen when join order of multiple small
    tables have a join relation with a huge table and data is skewed
    on join columns of the large table .
    .
    Additional keywords: SQLJOIN SQLACCESSPATH SQLPERFORMANCE
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All users of Db2 12 for z/OS who have a                      *
    * query with star join patterns and                            *
    * ZPARM SJTABLES>10 and STARJOIN=DISABLE.                      *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Db2 may select inefficient join order                        *
    * for a query when two or more small                           *
    * tables have join relationship with a                         *
    * big table, which satisfies star join                         *
    * patterns.                                                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Apply corrective PTF when available                          *
    ****************************************************************
    Db2 may choose to join a big table early for queries with the
    following join patterns.
    (1) Two or more small tables have a join relationship with a
    big table;
    (2) There is data skew on the large table due to a join with a
    certain small table;
    (3) For one join predicate between a small table and the big
    table, it has higher column cardinality on the small table
    side than the other side.
    When the conditions above are met, Db2 may generate a plan
    joining the large table early. It may result in bad
    performance.
    Additional keywords:
    SQLACCESSPATH SQLPERFORMANCE SQLSTARJOIN
    

Problem conclusion

  • The performance problem described above is  fixed by
    recognizing the star join pattern and generating an
    access plan more fit for the star-pattern queries.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH15783

  • Reported component name

    DB2 OS/390 & Z/

  • Reported component ID

    5740XYR00

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-08-16

  • Closed date

    2019-12-12

  • Last modified date

    2020-02-04

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    UI66971

Modules/Macros

  • DSNXOQSJ
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • RC10 PSY UI66971

       UP19/12/20 P F912

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEPEK","label":"Db2 for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
04 February 2020