IBM Support

IT17944: SELECT FROM VIEW AND SUBQUERY RUNS MUCH SLOWER THAN A SELECT FROM THE UNDERLYING TABLES

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When selecting from views, the query running time can take about
    15 times slower than selecting directly from the underlying
    tables.
    
    For example:
    
    SELECT ...
    FROM
    	SELECT ...
    	FROM ( View1
    		LEFT OUTERJOIN (
    			SELECT * FROM View2
    			INNER JOIN
    			SELECT * FROM View3
    		)
    	FULL OUTTER JOIN
    		SELECT ... FROM View2
    
    The above query takes 34 mins 10 secs to return the result.
    If this query uses underlying tables in the subquery instead of
    views, it takes 2 minutes 35 seconds to run.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of 12.10.xC1 through 12.10.xC8.                        *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * A query may have poor performance when Full-Outer-Join is    *
    * used, especially when one side of the FOJ is a very large    *
    * table.                                                       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Update to IBM Informix Server 12.10.xC9.                     *
    ****************************************************************
    

Problem conclusion

  • Problem Fixed In IBM Informix Server 12.10.xC9.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT17944

  • Reported component name

    INFORMIX SERVER

  • Reported component ID

    5725A3900

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-11-14

  • Closed date

    2017-07-10

  • Last modified date

    2017-07-10

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

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

Fix information

  • Fixed component name

    INFORMIX SERVER

  • Fixed component ID

    5725A3900

Applicable component levels

  • RC10 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSGU8G","label":"Informix Servers"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"C10","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
10 July 2017