I'm not following your application that well, so take my comments with a
grain of salt.
I started out to use an application-scoped structure to put my database in
RAM, but abandoned it because cached queries were faster and simpler.
However, this was probably because I simply put the database table directly
into a structure, and then ran a query against the on-disk database to find
those rows I needed for each query, for example, all those records with
city equal to Oakland.
The better way to use structures is to de-aggregate tables, for example,
create a structure that contains only records with city equal to Oakland,
for example.
So if you are doing the latter, you might be ahead.
best, paul
At 10:36 AM 1/4/01 -0500, you wrote:
>I am redesigning a tv station website and I have weather and stock info
>that is captured from our news system and stuck in a database. The
>current system is when a user hits the website a query is executed to get
>the data with a 10 minute cachedwithin setting. The new system is was
>think about sticking these live values into an application structure with
>a 15 minute timeout on the app:
>
> <cfset application.wx.city="#trim(topwx.realcity)#">
> <cfset
> application.wx.image="#trim(lcase(topwx.condition))#">
> <cfset application.wx.temp="#trim(topwx.thetemp)#">
> <cfset application.wx.wind="#trim(topwx.wind)#">
>
>There is only one application scope running on this server and I was
>wondering if there is any difference in memory allocation and speed
>between a dataset in memory and an application structure. Which one would
>offer any benefits over the other. I currently run about 400,000 to
>500,000 page views a day on this box.
>
>Any thoughts?
>
>Robert Forsyth
>Director of Web Operations
>Irides, LLC
>Phone: 202-364-7831
> Fax: 202-364-2481
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists