S
SirPyros
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.
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.
