Re: Problems w/ heavy use of cart header fields?
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 16899
interpreted = N
texte = On 4/6/1998 1:27 PM, PCS Technical Support so noted...>>I'm wondering if frequently setting, resetting and>>accessing these cart header fields will cause a big performance hit>>Everything is RAM-based as long as you're inside an OrderFile context,>because SetHeader will look 'outwards' until it bumps into a context that>contains the same OrderFile as the on in the SetHeader.>>Any template that you get to from ShowCart, Purchase, Add, Remove (all the>commands that deal with carts) is automatically 'wrapped' inside an>OrderFile, so a bunch of SetHeader tags on that page should be pretty fast.>>Naturally if you're not inside an existing OrderFile context, then>SetHeader won't find any OrderFiles in RAM, and it will have to actually>hit the disk in order to make changes to the order file.Since I'm using these header fields so extensively, all but a handful of pages are enclosed inside an orderfile context. Does what you say mean that, if a setheader occurs within an orderfile, that after the [/orderfile] those changes *then* get written to disk? If so, does an [/orderfile] always write to disk, or only if changes are made to the order within the context (ie: by using one or more setheaders)? Also, can my shopping carts be moved outside of the web directory tree, if I wanted to move all these carts to a RAM disk (and would that be beneficial, or a waste of time and an unnecessary risk)?Rob MarquardtDesigner/Resident WireheadToast Design300 First Avenue North, Suite 150Minneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com
Associated Messages, from the most recent to the oldest:
On 4/6/1998 1:27 PM, PCS Technical Support so noted...>>I'm wondering if frequently setting, resetting and>>accessing these cart header fields will cause a big performance hit>>Everything is RAM-based as long as you're inside an OrderFile context,>because SetHeader will look 'outwards' until it bumps into a context that>contains the same OrderFile as the on in the SetHeader.>>Any template that you get to from ShowCart, Purchase, Add, Remove (all the>commands that deal with carts) is automatically 'wrapped' inside an>OrderFile, so a bunch of SetHeader tags on that page should be pretty fast.>>Naturally if you're not inside an existing OrderFile context, then>SetHeader won't find any OrderFiles in RAM, and it will have to actually>hit the disk in order to make changes to the
order file.Since I'm using these header fields so extensively, all but a handful of pages are enclosed inside an orderfile context. Does what you say mean that, if a setheader occurs within an orderfile, that after the [/orderfile] those changes *then* get written to disk? If so, does an [/orderfile] always write to disk, or only if changes are made to the order within the context (ie: by using one or more setheaders)? Also, can my shopping carts be moved outside of the web directory tree, if I wanted to move all these carts to a RAM disk (and would that be beneficial, or a waste of time and an unnecessary risk)?Rob MarquardtDesigner/Resident WireheadToast Design300 First Avenue North, Suite 150Minneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com
Rob Marquardt
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Another bug to squash (WebCat2b13 Mac .acgi) (1997)
Displaying photo attached to first record (1997)
[searchstring] (2000)
[shownext max=?] armed (1997)
Yet another db manager (2004)
MetaKW tags from databases (2006)
More than one db with the same namn (was: WC2f3) (1997)
Listserver problem (1997)
[exclusivelock] (was:several people...) (2001)
Linux file configuration (1999)
Multiple fields on 1 input (1997)
Forms Search Questions (1997)
Trigger Happy (2005)
Please.. copies of Digest for 7/29 and 7/30? (1997)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
WebCat2 beta 11 - new prefs ... (1997)
Interfacing a webcat front end registartion to CommunigatePRO (2000)
Frames and WebCat (1997)
Mozilla/4. and Browser Info.txt (1997)
[WebDNA] WebDNA on LiveCD ... (2008)