Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Problem Adding Member to User Group (database lockup)
Avatar
sptab
Member
sp_UserOfflineSmall Offline
Jun 10, 2013 - 2:22 pm

It's been a while I am experiencing a problem when adding a member to a user group, I am getting the wait box below showing forever...

sp_WaitBox.gif

This happens in SP Administration, when going to Users Groups / Manage User Groups, in one of my User Groups. I can show the existing members with "Show/Hide Members" button. The problem comes when I press the "Add Members" button, the wait box shows and seems to run forever.

So far, I found in my mysql server logs that this operation creates the following query:

(extract)

SELECT wp_sfmembers.user_id, display_name, admin

FROM wp_sfmembers

WHERE user_id NOT

IN (

SEL....

 

which goes in "Sending data" for a very long time. I never let it timeout, since it's locking all my other forum queries and I have to kill it manually.

My forum/Wordpress setup has ~80 000 users, the User Group I want to add members on contains just 5 users.

What could be the problem cause, is there a quick fix ?

Thank you.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 10, 2013 - 2:33 pm

let me take a look and come back on this...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 10, 2013 - 2:57 pm

are you up to making code changes?

andy-signature.png
YELLOW
SWORDFISH
Avatar
sptab
Member
sp_UserOfflineSmall Offline
Jun 10, 2013 - 3:04 pm

I am up for it if the change scope is expected to be limited to the member adding feature. 

My forum is live, I have no staging or pre-production instance and I'd really don't want to break anything kiss

Cheers.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 10, 2013 - 3:32 pm

Yes that would have been the case but I am going to need to investigate further.

I think the current query there is probably inefficient but constructing an alternative may not be quite as straightforward as I first thought. So - still looking into it but not necessarily an instant fix...

andy-signature.png
YELLOW
SWORDFISH
Avatar
sptab
Member
sp_UserOfflineSmall Offline
Jun 10, 2013 - 3:49 pm

Ok, I'll wait.

In the meantime, if you have an SQL tip so I can do the operation by hand, manually adding a user_id to a group_id (wp_sfgroups) ?

 

Thank you.

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 10, 2013 - 3:51 pm

Well that is held relationally in the 'sfmemberships' table which holds the user_id and the usergroup_id combinations... So quite easy to manually adjust and add rows to.

andy-signature.png
YELLOW
SWORDFISH
Avatar
sptab
Member
sp_UserOfflineSmall Offline
Jun 10, 2013 - 5:04 pm

Thanks, that does the job for the moment, but I'll be fine to test any fix you will provide.

Cheers.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 10, 2013 - 5:17 pm

I have opened a ticket. I need to get some test data re-arranged so that I can test things a little more reliably.

andy-signature.png
YELLOW
SWORDFISH
Avatar
sptab
Member
sp_UserOfflineSmall Offline
Aug 13, 2013 - 4:29 pm

I believe the issue mentionned in that post was marked as fixed in Mantis bugtracker, but can't find it again.

I have recently updated Simple Press to latest version 5.3, hoping to get the database lockup issue would be gone, unfortunately the problem is still there frown

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625