Re: Session storage vs. frequent DB calls
From: Rune (year)
Date: 07/30/04
- Next message: jason_at_catamaranco.com: "Re: Login Script based on Email, IP and sql server backend"
- Previous message: CJM: "Re: Session storage vs. frequent DB calls"
- In reply to: CJM: "Re: Session storage vs. frequent DB calls"
- Next in thread: Aaron [SQL Server MVP]: "Re: Session storage vs. frequent DB calls"
- Reply: Aaron [SQL Server MVP]: "Re: Session storage vs. frequent DB calls"
- Reply: CJM: "Re: Session storage vs. frequent DB calls"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 30 Jul 2004 16:22:18 +0200
CJM wrote:
> My answer would be that it doesnt matter.
>
> The overhead for multiple DB calls is negligible, especially when
> connection pooling is utilised. The overhead for storing so little
> information in a Session variable is negligible, unless you have an
> VERY large number of concurrent users.
Some of out previous surveys (using multiple DB calls) slowed down the
server a lot when many users were connected at the same time, so it seems to
matter.
> You could avoid both if you really wanted to: pass the concatenated
> answers to the next page (encrypted, of course) in a querystring.
The querystring can only hold 1024 characters in total, which in this case
is not enough.
> Store the concatenated answers in a hidden form field, and POST to
> each page...
This would mean transfering the same data back and forth between server and
client again and again. This seems very ineffecient.
> I'm sure there are many other weird & wonderful ways of
> doing it, but does it really matter?
Yes, I would say so. See above.
> So I would concentrate on functionality. Do you want to abandon a
> survey if not completed or do you want to salvage what you can?
The idea is that the user can log off and return later and finish the rest
of the survey. Thus we save data from unfinished surveys.
> If
> you want to keep the data from an unfinished survey, you can use the
> DB route or you could store the answers in a cookie.
We use session cookies to be able to use sessions, but we don't want to
force the user to turn on cookies for long term storage of information.
Apparently many people use high security and privacy settings.
Rune
- Next message: jason_at_catamaranco.com: "Re: Login Script based on Email, IP and sql server backend"
- Previous message: CJM: "Re: Session storage vs. frequent DB calls"
- In reply to: CJM: "Re: Session storage vs. frequent DB calls"
- Next in thread: Aaron [SQL Server MVP]: "Re: Session storage vs. frequent DB calls"
- Reply: Aaron [SQL Server MVP]: "Re: Session storage vs. frequent DB calls"
- Reply: CJM: "Re: Session storage vs. frequent DB calls"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|