| Author |  Topic  | 
              
                | PodgeSupport Moderator
 
      
 
                Ireland3776 Posts
 | 
                    
                      |  Posted - 21 September 2005 :  13:57:24   
 |  
                      | quote:mlev is not stored in your cookie by the way.
 
 
 Well done
  . There not a lot than can get past you Huwr! 
 
 quote:Yes, it will check them all, but since this is down.asp performance is not really an issue.
 
 
 In topic.asp when request("ARCHIVE") is specified in the code and ARCHIVE=true does not exist as a querystring IIS will check all 5 collections. Thats a performance hit every time topic.asp is viewed. Servervariables is the most expensive to query cpuwise as IIS has to retrieve a lot of data to respond e.g. http_host, server_name, etc. If querying all 5 collections can be avoided I think it should be.<
 |  
                      | Podge.
 
 The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)
 
 My Mods: CAPTCHA Mod | GateKeeper Mod
 Tutorial: Enable subscriptions on your board
 
 Warning: The post above or below may contain nuts.
 |  
                      |  |  | 
              
                | HuwRForum Admin
 
      
 
                United Kingdom20611 Posts
 | 
                    
                      |  Posted - 21 September 2005 :  19:11:33     
 |  
                      | quote:That is a fair point, and one I hadn't considered,it actually checks it twice if it doesn't equal trueIn topic.asp when request("ARCHIVE") is specified in the code and ARCHIVE=true does not exist as a querystring IIS will check all 5 collections. Thats a performance hit every time topic.asp is viewed. Servervariables is the most expensive to query cpuwise as IIS has to retrieve a lot of data to respond e.g. http_host, server_name, etc. If querying all 5 collections can be avoided I think it should be.
 
  , now what would be interesting is to see what kind of difference it does make.< |  
                      |  |  | 
              
                | PodgeSupport Moderator
 
      
 
                Ireland3776 Posts
 | 
                    
                      |  Posted - 21 September 2005 :  19:39:32   
 |  
                      | You would expect that because request("ARCHIVE") is used twice that it would "cost" twice as much but in truth it only costs slightly more. I read something somewhere a long time ago that stated that the second time you search the collection isn't as cpu intensive as the first. 
 I doubt I will be able to get conclusive proof that that line is to blame for IIS crapping out. In my view it could only have been a (small) contributing factor at most but at least I can eliminate it now. I'll update this thread if I find anything.
 
 Thanks for your help, Huwr.<
 |  
                      | Podge.
 
 The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)
 
 My Mods: CAPTCHA Mod | GateKeeper Mod
 Tutorial: Enable subscriptions on your board
 
 Warning: The post above or below may contain nuts.
 |  
                      |  |  | 
              
                
                |  Topic  |  |