68 Modernizing IBM Eserver iSeries Application Data Acess - A Roadmap Cornerstone
ON DELETE RESTRICT ON UPDATE RESTRICT )
Database constraints are beneficial due to the following reasons:
They centralize the definition of business rules.
Easier code re-use and better modularity.
Improved data integrity.
Improved query performance. SQE query optimizer is constraint aware.
The new SQE optimizer, starting with V5R3, also has the ability to analyze the constraint
definitions to see if they can be employed to make data retrieval more intelligent and
faster. For example, if a query is executed searching for all orders with a quantity greater
than 1000, the optimizer would be able to return an empty result set without looking at any
of the data ...