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:
WebCatalog Hosting (1996)
Sort Order on a page search (1997)
Calculating multiple shipping... (1997)
counting characters and/or words (1997)
[OT] Be Nice to Your Computer Wizards (2000)
Mass Mail (2000)
Email within tmpl ? (1997)
Running 2 two WebCatalog.acgi's (1996)
HELP WITH DATES (1997)
Third try - Looking for a Programmer (2004)
creator code (1997)
PSC recommends what date format yr 2000??? (1997)
WML (2000)
japanese characters (1997)
Database Options (1997)
Error Lob.db records error message not name (1997)
WebCommerce: Folder organization ? (1997)
WebCat2.0 [format thousands .0f] no go (1997)
back button loses cart (2000)
Webmerchant/Cybercash (2000)