I wish I could remember who mentioned this idea - it was an offhand remark
that stuck in my head and it is working nicely (at least for the last 5
minutes in a test environment).  Anyways, the idea concerned when you use an
application scope variable to store information to keep from having to hit
the database every page, you sometimes need to refresh the information, or
load it when the CF service has been restarted.  Their remark was to have
that information in a WDDX string in a file.  I expanded this to mean that
when updating information in a maintenance screen, the data used in the
application variable is written to a file.  Now, when the application
variable is refreshed or loaded it gets the latest information from that
file, and never has to go through the code required to completely rebuild
the data.

Considering we are about to push a bunch of our product data from the
database into complex structures in memory to speed the next version of the
site up, this is going to work out great.

So, kudos to whoever mentioned this!  Made that $10 a worthwhile investment.
:^�

Dan


The information contained in this message is privileged and confidential.  It is 
intended solely for the use of the named recipient.  If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, distribution, or use 
of the contents of this transmission is strictly prohibited.  If you receive this 
message in error, please notify the sender immediately.  Thank you.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to