A question that I have so far failed to find answer to if anyone (hi, Rendle) has the answer:
We store our site sessions in a database, so that it's accessible across all the web servers. I'm trying to increase performance a little by reducing the number of (normal, non-session) DB calls we make by storing more data in the session.
Now, I don't know how ASP.NET internally queries the session data. For instance, when I do:
C# code:
Session["blahblah"]
does it fire off a query? Or does it load up all the session data in one big gulp before the page load, and store it in memory? I'm assuming it's the latter, but can't find any confirmation on this. If it's the former, then my optimisations are hardly worth doing.