I've been doing this code (below) for awhile now, monthly, to send
out a newsletter. It pulls from a static file, parses through the
data for the newsletter. It also queries a registration page to find
out if there newsletter setting is true or false. I'm receiving an
error that the loop is timing out. Oddly, while the tr_len count has
gone up, it's not gone up considerably. If I lower it to 400 it
works and at 430 it doesn't, but I suspect last month it was at
around 500 and I received no complaints.
Anyhoo, should this be enough to warrant that problem or should I be
looking for another? While this wasn't the best way of doing the
job, I've learned since. I have to rewrite this code in a month
anyway so I'm somewhat loathe to do any major adjustments at the moment.
any thoughts?
db_people.recordCount = 901
tr_len = 564
<cfloop from="1" to="#db_people.recordCount#" index="pp">
<cfset ignore_db_item = false>
<cfloop from="1" to="#tr_len#" index="qq">
<cfset tmp_recordset =
listToArray(total_records_ar[qq],"|")>
<!--- the trim is because there could be extra spaces
and it seems
to be often --->
<cfif trim(db_people.email[pp]) EQ
trim(tmp_recordset[3])>
<cfset ignore_db_item = true>
<cfbreak>
</cfif>
</cfloop>
<cfif ignore_db_item EQ false>
<cfset tmp_db_ar = "#db_people.email[pp]#">
<cfset arrayAppend(total_records_ar,tmp_db_ar)>
<cfset arrayAppend(reg_ar,tmp_db_ar)>
</cfif>
</cfloop>
--
Daniel Kessler
College of Health and Human Performance
University of Maryland
Suite 2387 Valley Drive
College Park, MD 20742-2611
Phone: 301-405-2545
http://hhp.umd.edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2
Build sales & marketing dashboard RIAâs for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279448
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4