I'm need to detect if a collection exists and if it doesn't, then I need to
create the collection.

In previous versions of CF, if you performed the <cfcollection
action="create" /> on a collection it would throw an error. This meant you
could just wrap the code in a cftry and than use a cfcatch to skip
processing.

In CFMX7 they've added a <cfcollection action="list" /> to retrieve all the
collections which you can use to see if a collection exists. The problem is,
<cfcollection /> is taking 20+ seconds to run--which is way too long.

Is there a faster way to determine if a collection exists? I know I could
check for the directory, but this doesn't really confirm if the collection
is actually registered.

-Dan



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229329
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to