i don't believe this is true. session data is stored in server RAM -- the
only thing potentially stored on the client is the session id.
as to the original question, you can do some quick calculating to determine
how much RAM each session requires. just add up your variable lengths in
bytes. i think that storing info in the session is the better way to go
than multiple hits to the database.
another option, if your long descriptive strings share anything in common is
simply to store keys in the session and store common text in a hashtable.
then all you need do is change the keys when the user changes anything on a
tab. then just write the keys to the db at the end of the session.
if that won't work, just bear in mind that server RAM is relatively cheap
these days, and it is quite common for servers to have 256 MB + on them. if
yours is the only app on the server, then large session variables probably
will not hurt performance.
--bradley mclain
>From: Saurabh Banerjee <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Limit on Session variables and Performance
>Date: Fri, 16 Jun 2000 07:29:06 PDT
>
>I believe that session information will be stored as cookies at the client
>machine and won't cause too much load on the server.
>
>I think it will be more effecient than doing database calls.
>
>Saurabh
>
>
>
>>From: Vaishali Joshi <[EMAIL PROTECTED]>
>>Reply-To: A mailing list about Java Server Pages specification and
>> reference <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Subject: Limit on Session variables and Performance
>>Date: Fri, 16 Jun 2000 09:14:44 EDT
>>
>>Hi All Java gurus
>>
>>Does anyone has any idea about performance of a site if lots of
>>information
>>is stored in a session. There may not be too many sessions at one time,
>>but
>>in one session lots of information (around 100 variables) will be stored.
>>Some of the information will be too long too as description.
>>We are having a tabbed web application, and the issue is whether to store
>>the information in a database as we move from one tab to another or should
>>we store it in session. Putting it in database will be like lots of calls
>>to
>>database, and if the user changes the information by going back and forth
>>between tabs then we are doing lots of rewriting to the database. And at
>>the
>>end, user might even cancel everything, so we will end up having these
>>kinds
>>of useless records in database. But I am not sure about how putting this
>>huge number of data in session will affect the performance. The other
>>option
>>is putting some data in session and some in temp tables..
>>
>>I would appreciate if you can throw some light on these issues..
>>
>>Thanks
>>Vaishali
>>________________________________________________________________________
>>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>>
>>===========================================================================
>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>>JSP-INTEREST".
>>Some relevant FAQs on JSP/Servlets can be found at:
>>
>>http://java.sun.com/products/jsp/faq.html
>>http://www.esperanto.org.nz/jsp/jspfaq.html
>>http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>>http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>http://java.sun.com/products/jsp/faq.html
>http://www.esperanto.org.nz/jsp/jspfaq.html
>http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets