O'Reilly logo

Programming ColdFusion MX, 2nd Edition by Rob Brooks-Bilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Maintaining Collections

Once you have your Verity collection up and running, you may be tempted to sit back and leave well enough alone. However, as with any collection of information, Verity collections require periodic maintenance to keep them running in top form. ColdFusion provides several tools for accomplishing these tasks.

Optimizing Collections

Like relational databases, the contents of a Verity collection require periodic optimization for efficiency and streamlining. Because the data in a Verity collection is updated incrementally, over time the collection can become fragmented, which can result in bloated file sizes and slow search performance. Optimization compresses the data stored in a Verity collection, reducing the overall footprint of the collection and providing for more efficient searching. ColdFusion gives you two options for optimizing your Verity collections.

The first method for optimizing a Verity collection is through the ColdFusion Administrator. To optimize a Verity collection via the ColdFusion Administrator, all you need to do is click the Optimize icon next to the desired Verity collection name in the Verity Collections section of the ColdFusion Administrator. A JavaScript confirmation box asks you if you are sure you want to do this. If you choose to continue, ColdFusion carries out the optimization. The optimization process can last from a few seconds to several minutes depending on the size and type of data being optimized.

The second method for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required