|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
OptimizationI'm building a shopping cart solution. In terms of scalability and
perfomance for the server, which is better, only storing a small variable in session state to denote a cart and load information from the database and calculate values for the cart every time they need to be shown, or save item id and quantity information in a class and store it in the session, then as values are calculated they are stored in the class to be used later if no items have changed. April 6, 2005
If you haven't specifically secured your session state, then it is a rule of thumb not to store anything in session state that you base security decisions on later. This would force your decision to use the database. Hope this helps! :-) Joseph MCAD Show quoteHide quote "SirPyros" <SirPy***@hotmail.com> wrote in message news:1112886957.622593.312110@z14g2000cwz.googlegroups.com... > I'm building a shopping cart solution. In terms of scalability and > perfomance for the server, which is better, only storing a small > variable in session state to denote a cart and load information from > the database and calculate values for the cart every time they need to > be shown, or save item id and quantity information in a class and store > it in the session, then as values are calculated they are stored in the > class to be used later if no items have changed. >
DataReader in Excel (Better Post than the last)
getting row index of dataset Howto: use mutliple languages C++ in VB.net Update for VS .NET 2003? Compiler errors due to temp file inconsistencies ?? Remove items from listbox Object reference not set to an instance of an object. How to get assembly file info? cast sortedlist value as hashtable Prevent User Entering New Values in ComboBox |
|||||||||||||||||||||||