Using ColdFusion ORM, you can perform indexing either automatically or in offline mode.


Indexing is performed every time an entity is added, revised, or deleted from the database.
To enable auto-indexing, set ormsettings.searchenabled to true in the Application.cfc. 
Indexing is automatically done whenever an ORM entity is persisted, based on the configuration in CFCs. For details, see Specify the ORM search settings in Indexing the persistent entity.

Offline indexing

Indexing is performed manually with the help of ColdFusion functions. In this mode, indexing is performed in batches.
You may want to perform offline indexing in the following scenarios:

  • Index all or some of the pre-existing data in a database.
  • Avoid in-request indexing (default behavior) to minimize CPU load, and later perform indexing as batch operation.
    The function ORMIndex lets you perform offline indexing.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy