Editing a forum with a boatload of members.. - Posted (1274 Views)
Senior Member
bobby131313
Posts: 1163
1163
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?
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Admin
HuwR
Posts: 20611
20611
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
Posted
Support Moderator
Shaggy
Posts: 6780
6780
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.”
Posted
Senior Member
bobby131313
Posts: 1163
1163
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.
Posted
Senior Member
weeweeslap
Posts: 1077
1077
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.
Posted
Advanced Member
Carefree
Posts: 4224
4224
Here you go, Weewee:

"post.asp"
Code:

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 "
Posted
Senior Member
bobby131313
Posts: 1163
1163
Hah! Genius!
Changed...
Code:

		'#################################################################################
'## 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

Code:

		'#################################################################################
'## 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!
Posted
Senior Member
bobby131313
Posts: 1163
1163
Dam you Carefree.... Grrr......
smile
Posted
Advanced Member
Carefree
Posts: 4224
4224
Any time bigsmile
Posted
Senior Member
bobby131313
Posts: 1163
1163
Carefree, don't you have to add M_POSTS to the select?
Posted
Advanced Member
Carefree
Posts: 4224
4224
Code:
		strSql = strSql & " WHERE M_STATUS = 1 AND M_POSTS > 0"
You Must enter a message