IBM Support

IT30007: INSERT statement performs poorly when source fullselect includesUNION ALL and fetch-clause

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An INSERT statement with a fullselect source may perform poorly
    compared to the same fullselect issued as a select-statement.
    This can happen if the source fullselect includes a UNION ALL
    subselect or view and there is a fetch-clause and ORDER BY over
    the UNION ALL.  In the select-statement, the fetch-clause and
    ORDER BY may be pushed into the UNION ALL branches.  This
    optimization is not considered for the INSERT with fullselect
    source.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Db2 version 11.1.4.7                              *
    ****************************************************************
    

Problem conclusion

  • First fixed in Db2 version 11.1.4.7
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT30007

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-08-15

  • Closed date

    2022-04-16

  • Last modified date

    2022-04-16

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

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

    IT39337

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • RB10 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
04 May 2022