What is faster?

Results 1 to 2 of 2

Thread: What is faster?

  1. #1
    Join Date
    Dec 1969

    Default What is faster?

    I need to get a variable and can do so in one of two ways:<BR><BR>1) Call a session variable<BR><BR>2) Use a sql command and query the database<BR><BR>My question is, which of these two methods is faster?

  2. #2
    Join Date
    Dec 1969

    Default RE: What is faster?

    the non-technical answer is that a session variable is faster (ignoring the traffic on you web a database server) - but there&#039s a finite limit in terms of scalability here. Session variables will be faster until that point where they are chewing more memory resources on your web server then you can spare. At this point it would be faster to call your db - the fastest way though would be to store the variable in the querystring, this also allows for the greatest scalability.<BR><BR>bart

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts