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: Database: MS SQL Server
 SQL performance problems
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 3

putimeswebmaster
New Member

67 Posts

Posted - 12 June 2002 :  00:50:31  Show Profile  Visit putimeswebmaster's Homepage
Same error:

Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment: 'chkForumAccess'

/forum/active_smk.asp, line 360


I have exactly:

' Does user have access to the forum??
if cLng(Forum_ID) <> cLng(currForum) then
testAllow = chkForumAccess(Forum_ID,MemberID,false)
end if
if testAllow then

Pop Up Times Webmaster
http://www.popuptimes.com
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 12 June 2002 :  03:13:55  Show Profile  Visit Gremlin's Homepage
Instuctions there look like they may have been for a slightly different version of the forums, try replacing it with this instead


' Does user have access to the forum??
if cLng(Forum_ID) <> cLng(currForum) then
testAllow = chkForumAccess(Forum_ID,MemberID)
end if
if testAllow then


Basically I've just removed the ,false from the testallow line.

www.daoc-halo.com
Go to Top of Page

putimeswebmaster
New Member

67 Posts

Posted - 12 June 2002 :  08:46:12  Show Profile  Visit putimeswebmaster's Homepage
Thanks Gremlin!

Pop Up Times Webmaster
http://www.popuptimes.com
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 12 June 2002 :  09:12:50  Show Profile  Visit Gremlin's Homepage
Your welcome

www.daoc-halo.com
Go to Top of Page

putimeswebmaster
New Member

67 Posts

Posted - 12 June 2002 :  10:08:24  Show Profile  Visit putimeswebmaster's Homepage
Do you know of similar performance enhancements to fourm.asp and topic.asp?

Pop Up Times Webmaster
http://www.popuptimes.com
Go to Top of Page

putimeswebmaster
New Member

67 Posts

Posted - 12 June 2002 :  15:37:21  Show Profile  Visit putimeswebmaster's Homepage
After making the changes to active.asp, my host still reports 53,646 database transactions in a 10 minute window. There were probably 500 pages views in that time frame, most of them topic.asp, then forum.asp.

That would be 107 transactions per page view.

My host (Interland) is going to shut me down unless I migrate
to a dedicated DB server which I cannot afford.

Steve

Pop Up Times Webmaster
http://www.popuptimes.com
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 12 June 2002 :  17:19:32  Show Profile  Send ruirib a Yahoo! Message
That's just a sorry excuse. Maybe you should look for a host that won't impose those restrictions...
I'm sure the query numbers will come down sharply with 3.4, but don't know how soon it will come out.

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 12 June 2002 :  17:44:57  Show Profile  Visit HuwR's Homepage
you could try turning off things like subscription/moderations etc, but I would seriously consider looking for a new host

Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 12 June 2002 :  18:18:35  Show Profile
I suspect there is a MOD that causes problems. Interland and Crystaltech, both premier hosting companies, have been having problems with busy snitz sites and have resorted to shutting down some sites. One 30gb/mo Snitz site on CrystalTech with SQL Server has changed to a different forum to stay online (and is happy with the change).

Not all forums seem to have these problems which is why I think there is a MOD somewhere that has a coding problem gobbling up CPU and database resources.

$0.02


======
Doug G
======
Go to Top of Page

putimeswebmaster
New Member

67 Posts

Posted - 12 June 2002 :  21:58:42  Show Profile  Visit putimeswebmaster's Homepage
I have a smiley mod and the email random password mod.
No others.

Thanks for all the thought and effort everyone.

Pop Up Times Webmaster
http://www.popuptimes.com
Go to Top of Page

putimeswebmaster
New Member

67 Posts

Posted - 12 June 2002 :  22:03:41  Show Profile  Visit putimeswebmaster's Homepage
I cannot switch to another forum.
I have over 150,000 posts and that knowledge base is very valuable to our members.

Steve

Pop Up Times Webmaster
http://www.popuptimes.com
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 12 June 2002 :  23:24:29  Show Profile  Visit HuwR's Homepage
Have you tried archiving some of your posts

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 June 2002 :  23:40:47  Show Profile  Send ruirib a Yahoo! Message
Ok, I started to have a look at this. Couldn't spend as much time with this as I'd like, but we can have some improvements with simple measures.

My test was done in my small forum, with few categories 5 and forums (13). For topic.asp, the only file I managed to have a look so far, logged in as admin, topic.asp generated 49 T-SQL calls plus 51 additional stored procs calls (cursor handling) (total 91).

A quick analysis led me to the conclusion that the greatest responsability for this number of calls derives from including inc_jump_to.asp in this file.

After removing the include to inc_jump_to.asp, the T-SQL query number came down to 17 and the TSQL + stored proc calls (35) came down to a total of 58.

The price to pay is bearable: you no longer have the drop-down box to jump to ther forums at the bottom of the page.

To remove the include of inc_jump_to.asp, around line 499, find:



<table width="100%">
<tr>
<td align="center" valign="top" width="70%"><% Call PostingOptions() %></td>
<td align="center" valign="top" width="30%"><!--#INCLUDE FILE="inc_jump_to.asp" --></td>
</tr>
</table>


Just delete red part. You can also switch the values 70% and 30%. Where you have now 70%, put 30% and where you have 30% put 70%.

A similar thing can be done in forum.asp.

I can find a way to diminish the number of Db calls without removing inc_jump_to.asp, but I need more time and the reduction can be a bit minor.

This will save quite a number of calls to the DB. Typically two per each of your existing forums and one per existing category.

Let me know if you need additional help on this.

Hope this helps a bit. Better not have the drop down than lose the forum.

I'm also sorry if i couldn't put more time into this. I'll keep on trying. I believe I can remove 3 to 5 additional T-SQL statement calls from topic.asp. In fact I've already removed an extra call but it's a bit complicated to explain it here and now (it's getting a bit late).

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs


Edited by - ruirib on 16 June 2002 23:42:01
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 17 June 2002 :  00:33:43  Show Profile  Visit Gremlin's Homepage
Remove many of the GetMemberID calls and replace them with MemberId to Ruirib that helps a lot also.

www.daoc-halo.com
Go to Top of Page

putimeswebmaster
New Member

67 Posts

Posted - 17 June 2002 :  01:10:47  Show Profile  Visit putimeswebmaster's Homepage
I have ~50,000 active posts, the rest are archived.
I will try ruirib's modification now.

Pop Up Times Webmaster
http://www.popuptimes.com
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07