Differences

This shows you the differences between the selected revision and the current version of the page.

wiki:spl 2008/02/16 23:20 wiki:spl 2010/04/20 15:31 current
Line 18: Line 18:
    * The language is propriatory. You can't just move Informix-SPL to Oracle/Sybase/Where-ever.     * The language is propriatory. You can't just move Informix-SPL to Oracle/Sybase/Where-ever.
    * Informix's new Data-Blades seem to be The Way Of The Future, so don't hold your breath waiting for new features in SPL.     * Informix's new Data-Blades seem to be The Way Of The Future, so don't hold your breath waiting for new features in SPL.
 +
===== When are Stored Procedures optimized? ===== ===== When are Stored Procedures optimized? =====
-When a stored procedure is created all optimization will be attempted at that time. If the tables cannot be examined at compile time (they may not exist or may not be available), the create procedure will not fail. The SQL in this case will be optimized the first time the stored procedure is executed, and the query plan will be stored for use by other processes.+When a stored procedure is created all optimization will be attempted at that time. If the tables cannot be examined at compile time (they may not exist or may not be available), the create procedure will not fail. The SQL in this case will be optimized the first time the stored [[http://www.rushessay.com/custom_essay.php|essay writing]] procedure is executed, and the query plan will be stored for use by other processes.
An SQL statement will also be optimized at execution time if any DDL statement (e.g. alter table, drop index, create index) has been run that might alter the query plan. Altering a table which is linked to another table via a referential constraint (in either direction) will cause re-optimization of procedures which operate on the referenced table. The dependency list is used to track which changes would cause re-optimization. An SQL statement will also be optimized at execution time if any DDL statement (e.g. alter table, drop index, create index) has been run that might alter the query plan. Altering a table which is linked to another table via a referential constraint (in either direction) will cause re-optimization of procedures which operate on the referenced table. The dependency list is used to track which changes would cause re-optimization.
Line 27: Line 28:
If "update statistics for table" is run for any table involved in the query, the SQL statement will be re-optimized the next time the stored procedure is executed. If "update statistics for table" is run for any table involved in the query, the SQL statement will be re-optimized the next time the stored procedure is executed.
 +===== Dynamic SPL =====
 +
 +
 +[[http://www.ibm.com/developerworks/data/library/techarticle/dm-0806mottupalli/index.html|Dynamic SPL]]

Personal Tools