>
> <cflock
> timeout="10"
> name="verity_lock"
> throwontimeout="yes"
> type= "exclusive "
> >
> <cfcollection
> action="optimize"
> collection="target_collection_name"
> >
> </cflock>
The only change I would make is in the name. Instead of verity_lock I'd use
a name based on the collection name. Then make sure your SEARCH operations
have a read lock w/ the same name.
> Will this prevent a search or index from happening at the same
> time as the
> optimization?
Yes.
> Is there a way to loop through all the Verity collections rather hand
> hard-coding the collection name?
Um, I believe the collections are in the registry.
=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email : [EMAIL PROTECTED]
ICQ UIN : 3679482
"My ally is the Force, and a powerful ally it is." - Yoda
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.