Performs offline indexing - using this function without specifying parameters, all persistent entities of a given application are indexed.

ormIndex(); ormIndex('entity_name'); ormIndex('entity_list'); ormIndex('entityObject'); → returns void

This function requires Adobe ColdFusion 10 and up.  Not supported on Lucee, etc.

Sample code invoking the ormIndex function

EmpOBJs = entityLoad('employee', {lastname='Bond'}); 
 for(EmpObj in EmpObjs) 
 ormIndex(empObj); ]r]n } 

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub