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)
 Editing a forum with a boatload of members..
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bobby131313
Senior Member

USA
1163 Posts

Posted - 26 February 2012 :  08:09:29  Show Profile  Visit bobby131313's Homepage  Reply with Quote
I'm cruising up close to 20K members. That list takes what seems an eternity to load when editing forum properties. It takes around thirty seconds to generate the page because of the "Allowed Member List". Has anyone converted this to a text box to add a member instead of pulling the entire list?

Switch the order of your title tags

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 26 February 2012 :  13:35:01  Show Profile  Visit HuwR's Homepage  Reply with Quote
I'm pretty sure there was a MOD for this at some pont, have you tried looking on SnitzBitz ?

I would say however that if it is taking 30 seconds with 20K members then it is the server causing the slowness not the 20K members, we have > 30K and it takes approx 5 secs to open the page

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 27 February 2012 :  05:38:51  Show Profile  Reply with Quote
What version of the forum are you running, Bobby? Have a look at this topic and check that the changes mentioned have been made in your code.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 28 February 2012 :  09:28:01  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Shaggy that code was not there, I added it. It did improve the speed for normal posting but unfortunately not for forum editing. I also did not see anything on Snitzbitz.

Switch the order of your title tags

Edited by - bobby131313 on 28 February 2012 09:28:23
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 05 October 2012 :  17:08:54  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message  Reply with Quote
We added something to the query that it would only return the names of those who had at least a post count of 1. Since most of my site members don't post in the forum, that reduced the loading to under a second from over 30 seconds. Unfortunately, I'm no coder so I wouldn't know the first place to find that piece of code bt I hope that idea gets you going.

coaster crazy
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 05 October 2012 :  18:36:01  Show Profile  Reply with Quote
Here you go, Weewee:

"post.asp"


Look for the following lines (appx 1214-1217):

		strSql = "SELECT MEMBER_ID, M_NAME "
		strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
		strSql = strSql & " WHERE M_STATUS = " & 1
		strSql = strSql & " ORDER BY M_NAME ASC "

Change them to say:

		strSql = "SELECT MEMBER_ID, M_NAME "
		strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
		strSql = strSql & " WHERE M_STATUS = 1 AND M_POSTS > 0"
		strSql = strSql & " ORDER BY M_NAME ASC "
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 05 October 2012 :  18:47:04  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Hah! Genius!

Changed...


		'#################################################################################
		'## Allowed User - listbox Code
		'#################################################################################
		strSql = "SELECT MEMBER_ID, M_NAME, M_POSTS "
		strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
		strSql = strSql & " WHERE M_STATUS = " & 1
		strSql = strSql & " ORDER BY M_NAME ASC "


To


		'#################################################################################
		'## Allowed User - listbox Code
		'#################################################################################
		strSql = "SELECT MEMBER_ID, M_NAME, M_POSTS "
		strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
		strSql = strSql & " WHERE M_STATUS = 1 AND M_POSTS > 49 "
		strSql = strSql & " ORDER BY M_NAME ASC "




Now it only lists members with 50 posts (minimum for special forum access) or more and only takes about 3 seconds.

Thanks!

Switch the order of your title tags
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 05 October 2012 :  18:48:13  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Dam you Carefree.... Grrr......


Switch the order of your title tags
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 06 October 2012 :  11:47:55  Show Profile  Reply with Quote
Any time
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 06 October 2012 :  19:48:08  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Carefree, don't you have to add M_POSTS to the select?

Switch the order of your title tags
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 12 October 2012 :  06:12:10  Show Profile  Reply with Quote
quote:
Originally posted by bobby131313

Carefree, don't you have to add M_POSTS to the select?



quote:
		strSql = strSql & " WHERE M_STATUS = 1 AND M_POSTS > 0"

Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 12 October 2012 :  15:51:21  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Yeah, but doesn't...

strSql = "SELECT MEMBER_ID, M_NAME "

need to be...

strSql = "SELECT MEMBER_ID, M_NAME, M_POSTS "

Switch the order of your title tags
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 12 October 2012 :  16:45:59  Show Profile  Reply with Quote
No, bobby. Why do you think it does?

Support Snitz Forums
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 12 October 2012 :  18:36:36  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Hmmm... just thought you had to select it from the DB before you could use it.

So if you use it in the "where" part that's good enough?

Switch the order of your title tags

Edited by - bobby131313 on 12 October 2012 18:37:59
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 12 October 2012 :  18:52:15  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
In the SELECT clause you need only to include the columns you want to have in the resulting recordset. You don't need to include a column that you will only use to apply a condition, like in this case, Bobby.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 12 October 2012 :  21:28:03  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Ahhh.... gotcha. Thanks.

Switch the order of your title tags
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07