ColdFusion 9.0 Resources |
Lazy loading and fetch typeThe ActionScript persistent framework supports lazy loading although it may not be as intuitive because of the asynchronous connection with the database. The fetch type EAGER or LAZY determines the fetch type for the relationship that is loaded. An EAGER fetch type loads the relationship and fetches data when the call is first made. A LAZY fetch type loads the relationship and fetches data only when an explicit fetch call is made. The default value for the fetch type is EAGER and the default value for ignoreLazyLoad is false. When you specify fetchType="EAGER" at the class-definition level, the loadByPk function always loads the related object, irrespective of the value you specify for the ignoreLazyLoad parameter. When you specify fetchType="LAZY" at the class-definition level, you can have two possibilities:
|