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
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
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
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
=""
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
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
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
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
8 matches
Mail list logo