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/O Code)
 Question for the Snitz Team
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

TStewartFan
Junior Member

190 Posts

Posted - 13 February 2005 :  16:44:41  Show Profile  Visit TStewartFan's Homepage
I have finally reconfigured all the MODs I need for my site implementation and wanted to work on minimizing all these multiple connections to the database. Question of the day for you guys. If I utilize the already pre-existing connections (established in the default inc_header) and predefine items I will randomly be utilizing throughout the site (much like the MemberID) will I gain or loose performance? For instance, in my inc_header I have a select statement that calls upon a conditional WHERE statement (where MEMBER_ID=" & MemberID) Would it be beneficial (the amound of times I need to connect to the db) to save instances of the values it pulls from the db into a variable. Meaning
select * where member_id = "& memberid
MemberPoints = rs("M_POINTS")
MemberROnly = rs(M_READ")
and so on and so on...
Because the inc_header is included in each page and the rs connection is created in each page it would save me the hastle of having to create 2, 3, 4, ect.. connections to the db from my included files. Could this method be bandwidth beneficial or would I be just increasing the time it takes to load each page? From what I have learned with ASP and from what I know with Javascript I would think by saving the info into a variable which is used across multiple pages it would decrease load time but because many of these variables will only be used once or twice throughout the site would it be that much of a benefit? I figured I would ask BEFORE I began to change because I have more then my fair share of included files Thanks for all your help. Just trying to make my site as dial up friendly as possible while still keeping the cool stuff I hope my site will be the only site offering.

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 13 February 2005 :  16:51:07  Show Profile  Visit PeeWee.Inc's Homepage
Make a back-up then try it out.

De Priofundus Calmo Ad Te Damine
Go to Top of Page

TStewartFan
Junior Member

190 Posts

Posted - 13 February 2005 :  16:54:46  Show Profile  Visit TStewartFan's Homepage
Thanks PeeWee...I know that...but I figured I would try and save me about 4 hrs of time by seeing if someone else has attempted this or not....heh

If You Have to Ask, You Wouldn't Understand.
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.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07