Writing Files without CFFILE

2004-03-09 Thread Sean Daniels
Hey all, I have a CF script that is used to generate about 14,000 static HTML files from dynamic content (don't ask). I am looping over a query using cfsavecontent to save the HTML code for each page and then writing to a file with CFFILE. As this process runs, I sit here and watch the CF

RE: Writing Files without CFFILE

2004-03-09 Thread Adam Reynolds
are not displaying them. Have you considered that cfsavecontent may not be the right thing here? Adam -Original Message- From: Sean Daniels [mailto:[EMAIL PROTECTED] Sent: 09 March 2004 16:16 To: CF-Talk Subject: Writing Files without CFFILE Hey all, I have a CF script that is used to generate about

Re: Writing Files without CFFILE

2004-03-09 Thread Sean Daniels
On Mar 9, 2004, at 11:50 AM, Adam Reynolds wrote: Your issue is the number of chunks you are trying to do it in. Try doing it in 2 parts. I thought about doing that, but it seems inherently non-scalable. Like, if I break it into two parts, what happens when the database returns 24,000

RE: Writing Files without CFFILE

2004-03-09 Thread Craig Dudley
Are you using the same variable name for the cfsavecontent? -Original Message- From: Sean Daniels [mailto:[EMAIL PROTECTED] Sent: 09 March 2004 17:18 To: CF-Talk Subject: Re: Writing Files without CFFILE On Mar 9, 2004, at 11:50 AM, Adam Reynolds wrote: Your issue

Re: Writing Files without CFFILE

2004-03-09 Thread Sean Daniels
="" file=#expandpath('../static/'arguments.fileName)# nameconflict=overwrite addnewline=no charset=utf-8 output=#arguments.content#/ cfreturn true/ /cffunction -Original Message- From: Sean Daniels [mailto:[EMAIL PROTECTED] Sent: 09 March 2004 17:18 To: CF-Talk Subject: Re: Wri

RE: Writing Files without CFFILE

2004-03-09 Thread Craig Dudley
Daniels [mailto:[EMAIL PROTECTED] Sent: 09 March 2004 17:44 To: CF-Talk Subject: Re: Writing Files without CFFILE On Mar 9, 2004, at 12:26 PM, Craig Dudley wrote: Are you using the same variable name for the cfsavecontent? Yes. On each iteration the savecontent overwrites the previous

Re: Writing Files without CFFILE

2004-03-09 Thread Sean Daniels
On Mar 9, 2004, at 12:38 PM, Craig Dudley wrote: I can only assume you were getting 14000 instances of the cfc object, not sure why. You could try creating one instance and storing it in say, the Application scope, and use that, might help. But since it's working now anyway, might be a waste

Re: Writing Files without CFFILE

2004-03-09 Thread Jon Gunnip
And that seems to be gobbling as much RAM as before. In any event, as you said, it's working great when I bypass the CFC so no sense beating it to death. Do you have debugging on by any chance?That can really slow down a CFC-intensive request. Jon [EMAIL PROTECTED] 03/09/04 11:29AM On