Forum Moderators: open

Message Too Old, No Replies

Performance question

         

joker197cinque

12:40 pm on Sep 23, 2005 (gmt 0)

10+ Year Member



I would like to ask some guys here what u think about this solution:

In my environment, day by day, number of page views increase.

The more traffic the more data-driven ASP pages become less efficient to serve client.

I reached this solution: to cache the stream in HTML and to serve it for the entire day (or week!).

Scenario:

W2k server - sql server 2k - iis 5 on the same machine.

I guess which of these is better:

1) Store HTML code as text in ntext field.

2) Store HTML code as binary in a BLOB field

3) Store only path and point to file system

Any opinion appreciated.

Best regards.

mrMister

4:57 pm on Sep 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Option 3 definitely.

An even faster solution is to store the files in Application state. This depends on the total size of your HTML files and how much RAM you have on your server.

Although your best option if your page is only database-driven and not dynamic is to store all the files in the web root and not bother with asp at all.

Also, you should cache the files until the database is modified rather than use a set time period like a day or a wekk.

If you are using an ASP page, don't forget to set the last-modified header. This will make your site faster still for a lot of users.

Well done by the way, you're on the right track. I've seen so many people spend weeks tweaking and changing their databases trying to improve performance when most of the data could be cached easily like how you're doing it. A bit of lateral thinking can go a long way!

Easy_Coder

7:54 pm on Sep 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



joker another idea would be to re-publish everything as static html pages w/o whitespace on a nightly basis...

aspdaddy

2:53 pm on Sep 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You might wanna put ISA04 or some other proxy service infront of IIS to do the caching and take the load off IIS.

I have done this with a busy site, rather than separate IIS and SQL on two boxes, leave them on one and put a dual proc ISA caching server infront.