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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Event Calender Mod Performance...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

SiSL
Average Member

Turkey
671 Posts

Posted - 08 October 2005 :  10:31:08  Show Profile  Visit SiSL's Homepage
Hello,

Previously I have had performance problems with my pop_profile.asp in especially in large topic / reply / member MS-SQL database where admins can see profiles fast, but users can not. Thanks to ruirib, I had this problem solved here

After installing Event Calender Mod, I have been living same problems (aka Admins see events fast like 0.55 second page timers, ordinary users are very slow like 20-35 seconds page timers) with my default.asp, and only code in Events Calender as SQL statement for default.asp is following code:

strSql = "SELECT T.TOPIC_ID, " & _
                "T.T_SUBJECT, " & _
                "T.FORUM_ID, " & _
                "T.T_STATUS, " & _
                "C.CAT_MODERATION, " & _
                "F.F_MODERATION " & _
         "FROM ((" & _ 
                strTablePrefix & "TOPICS AS T " & _
         "INNER JOIN " & _
                strTablePrefix & "CAL_EVENTS AS E ON E.TOPIC_ID = T.TOPIC_ID) " & _
         "INNER JOIN " & _
                strTablePrefix & "CATEGORY AS C ON C.CAT_ID = T.CAT_ID) " & _
         "INNER JOIN " & _
                strTablePrefix & "FORUM AS F ON F.FORUM_ID = T.FORUM_ID " & _
         "WHERE E.EVENT_DATE = '" & DatetoStr(dateHolder) & "'"


Or probably that might cause the slow load:
strSql =    "SELECT E.EVENT_DATE, T.FORUM_ID " & _
            "FROM " & _
                strTablePrefix & "TOPICS T " & _
            "INNER JOIN " & _
                strTablePrefix & "CAL_EVENTS E ON T.TOPIC_ID = E.TOPIC_ID " & _
            "WHERE E.EVENT_DATE BETWEEN '" & datetostr(DateSerial(Year(dateToDraw), Month(dateToDraw), 1)) & "' " & _
            "AND                        '" & datetostr(DateSerial(Year(dateToDraw), Month(dateToDraw)+1, 1 - 1)) & "' "
If intRqCalForumID <> 0 then strSQL = strSQL & _ 
            "AND T.FORUM_ID = " & intRqCalForumID & " "

strSQL = strSQL & _ 
            "GROUP BY E.EVENT_DATE, T.FORUM_ID " & _
            "ORDER BY EVENT_DATE Asc"

And ofcourse same problems with cal.asp as well. But code there is similiar.

Is there any chance to re-write this code with UNION statements since I'm inexperienced with usage of UNION?

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod

Edited by - SiSL on 08 October 2005 11:40:36

SiSL
Average Member

Turkey
671 Posts

Posted - 11 October 2005 :  00:43:29  Show Profile  Visit SiSL's Homepage
I would like to bump this topic once more, desperately needing help on the issue.

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod

Edited by - SiSL on 11 October 2005 00:44:01
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.31 seconds. Powered By: Snitz Forums 2000 Version 3.4.07