I'd be less worried about the speed of serving or ram usage as I would
how long the X minutes between reloads is. Re-grabbing several MB of
data from a database is going to make your site speed crawl while it
happens, not to mention you'd need to carefully cflock the application
scope writes to ensure your content was coherent - so it'd all be
single-threaded as well.

Overall I agree with the people who are suggesting static publishing,
since a static HTML page is probably as fast as a cf page coming out of
the application scope. As a hybrid solution, or if securing pages is
needed, consider publishing the static pages outside the web root and
using a CF page and getPageContext().include() - which doesn't have CF
parse the include if it's a static type (iirc).

Kam

-----Original Message-----
From: Damien McKenna [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 23, 2005 1:58 PM
To: CF-Talk
Subject: Reason to *not* store lots of data in Application scope?

I'm working on a rewrite of the events/news schedule for our company's
website and was thinking of storing all of the data in the Application
scope to be reloaded every X minutes.  My question is whether it would
be bad from a scaling or resource usage point-of-view to do this?  I
would probably be storing a few megabytes of data, not a huge amount
IMHO.  Thanks.
 
-- 
Damien McKenna - Web Developer - [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 
The Limu Company - http://www.thelimucompany.com/
<http://www.thelimucompany.com/>  - 407-804-1014
#include <stdjoke.h>
 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196374
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