Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: Caching the Jump To List
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

work mule
Senior Member

USA
1358 Posts

Posted - 21 March 2001 :  05:55:45  Show Profile
I had read this article at 15seconds.com about caching data for listboxes. The performance gains that were listed in the article were impressive. I thought it would be cool if the jump to list for the Snitz forum could be cached, especially since it doesn't change much. So I made an attempt at doing this.

It seems to work okay, but I only tested it on a very small test site. I have no idea how much memory this would take up as an application variable, especially for larger sites. I think if it's not too much memory, it's a good tradeoff versus having to hit the database for this everytime. Also I don't have much experience in arrays in VBscript and I was having trouble with some of it. I couldn't seem to make an array with over two dimensions work, so I had to work around it. It works tho'.

Is this good? bad? Is there a different way to do this? If anyone could take a look and provide some feedback, it would be appreciated!

Download - Zip File:
http://www.execpc.com/~literati/devforum_downloads/mods/inc_jump_to.zip

The article at 15seconds.com:
Get Your Data Faster with a Data Cache
http://www.15seconds.com/issue/000608.htm

tilttek
Junior Member

Canada
333 Posts

Posted - 21 March 2001 :  09:35:11  Show Profile  Visit tilttek's Homepage
quote:

I had read this article at 15seconds.com about caching data for listboxes. The performance gains that were listed in the article were impressive. I thought it would be cool if the jump to list for the Snitz forum could be cached, especially since it doesn't change much. So I made an attempt at doing this.
It seems to work okay, but I only tested it on a very small test site. I have no idea how much memory this would take up as an application variable, especially for larger sites. I think if it's not too much memory, it's a good tradeoff versus having to hit the database for this everytime. Also I don't have much experience in arrays in VBscript and I was having trouble with some of it. I couldn't seem to make an array with over two dimensions work, so I had to work around it. It works tho'.



I did someting similar... I create an include file, when I add/modify/delete a forum, I just write the file (generating the file) so when it's included I doesn't go to the DB nor use memory.


Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
Go to Top of Page

Kerry
Average Member

USA
553 Posts

Posted - 21 March 2001 :  10:20:21  Show Profile  Visit Kerry's Homepage
Nice idea to do that with the jumpboxes, tilttek . I use the same thing to generate all of the content for my main page (www.cantonweb.com/index.asp - absolutely zero db connections there) as well as about 400 search engine-friendly pages based on my web directory database (http://www.cantonweb.com/searchfor/).

-Kerry

Go to Top of Page

work mule
Senior Member

USA
1358 Posts

Posted - 21 March 2001 :  10:34:04  Show Profile
I agree that the include would be a better solution. I could just recreate that include file everytime the categories or forums are updated. But for people who don't/can't do it that way, I thought maybe this would be a good alternative.

Go to Top of Page

Kerry
Average Member

USA
553 Posts

Posted - 21 March 2001 :  13:54:15  Show Profile  Visit Kerry's Homepage
Agreed - I know several ISP's that either restrict or completely disallow FSO. As a Snitz mod it's better to go with something everyone can use.

Good call on the need for it .

-Kerry

Go to Top of Page

tilttek
Junior Member

Canada
333 Posts

Posted - 21 March 2001 :  15:35:51  Show Profile  Visit tilttek's Homepage
quote:

Agreed - I know several ISP's that either restrict or completely disallow FSO. As a Snitz mod it's better to go with something everyone can use.
Good call on the need for it .



Maybe we could have both Mod available :-)

Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07