Hello,
thank you for your reply but to me this is something expectable.
What I am doing is opening a session in my App_BeginRequest event
(remember ? You told me that was the best way to do that :-) and use
such session for all DB access during that request. Now, let alone I
didn't implement any cache yet, all stuff for my page is retrieved via
that session because it is shared across a single page request and it
will be closed when request ends.
Now consider this:
* page has to load itself and its settings (multiple DB access though
those can be reduced by implementing a caching system);
* page has to load controls and their data (multiple DB access and
there could be an unlimited number of controls on each page);
* each control will probably load one or more data objects to retrieve
data;
* localization resource provider will load localization stuff using
the same session;
* additional processing might occurr.
Now problem is, having more than 30 requests per session is NOT
something related to a bug or other race conditions (infinite loops
and so on). That's what will normally happen on page processing
lifecycle and this is totally expected. I'm not able to predict how
many connections will be needed for a single request.
That is exactly why I was micro-managing sessions. That's what I would
do with SQL database connections but I've been told to implement a
single, shared session per request, because that would have been
better. Now I find myself a bit lost since this 30 request per session
limit which, I'd like to make it clear, is NOT unexpected.
What is the best way to implement this kind of system (which basically
is a CMS) ?
Thank you all.
> > Thank you.- Nascondi testo citato
>
> - Mostra testo citato -