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)
 Suggested Indexes
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

grazman
Junior Member

USA
193 Posts

Posted - 06 September 2000 :  23:18:12  Show Profile  Visit grazman's Homepage
This actually applies to the current release also. I've been studying the SQL code that is generated by the application and it's effect on MS SQL Server. It appears that the forum.asp code is generating a significant number of table scans. The Active Topics page does the same type of query.

Can we add an index to FORUM_TOPICS composed of T_LAST_POST and FORUM_ID? I'd also like to suggest converting the date fields from varchar(50) to char(14). Even with the fields being varchar the indexes improves performance. Converting the fields should improver performance even more.

Another index that will help is on FORUM_MEMBERS on M_NAME. This will improve the login performance.

<font color=blue><b>SQLTeam.com</font id=blue></b> - For SQL Server Developers and Administrators

gor
Retired Admin

Netherlands
5511 Posts

Posted - 07 September 2000 :  01:09:12  Show Profile  Visit gor's Homepage
grazman -

About the indexes: could you take a overall look at them and see if there also are (maybe) onces that are not needed.

You can find them in inc_create_forum.asp in Version 3.1 Beta 2 or newer. Those are the ones used by the setup script.


<b>Pierre Gorissen </b><img src="http://www.homepages.hetnet.nl/~pgoris01/burnout.gif" border=0>
<font color=purple><font size=1>A fool learns from experience... a wise man learns from others...</font id=size1></font id=purple>
Go to Top of Page

grazman
Junior Member

USA
193 Posts

Posted - 09 September 2000 :  11:30:28  Show Profile  Visit grazman's Homepage
Ok, I've started work on this but I'm putting each suggestion in it's own topic. Some are easy and some are hard and I wanted each to be evaluated independantly. Check this forum for each suggestion.

<font color=blue><b>SQLTeam.com</font id=blue></b> - For SQL Server Developers and Administrators
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 09 September 2000 :  16:25:45  Show Profile  Visit gor's Homepage
Thanks ! <img src=icon_smile_approve.gif border=0 align=middle> I'll look at each one and post remarks.... (might be many "changed in source" remarks).

<b>Pierre Gorissen </b><img src="http://www.homepages.hetnet.nl/~pgoris01/burnout.gif" border=0>
<font color=purple><font size=1>A fool learns from experience... a wise man learns from others...</font id=size1></font id=purple>
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.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07