Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[E] optimized group join-requests counter #2067

Merged
merged 1 commit into from
Jan 23, 2022

Conversation

githubertus
Copy link
Contributor

Logic:
Every approved member MUST HAVE a group:join record already, and so we can count them indirectly by counting the group:join:approved records.
Now, if we do a second count on group:join records, the difference between the first and the second count is exactly the number of not yet approved members.
If the difference = 0, every member must have been approved. :)

Logic:
Every approved member MUST HAVE a group:join record already, and so we can count them indirectly by counting the group:join:approved records.
Now, if we do a second count on group:join records, the difference between the first and the second count is exactly the number of not yet approved members.
If the difference = 0, every member must have been approved. :)
@lianglee lianglee changed the title optimized group join-requests counter [E] optimized group join-requests counter Jan 23, 2022
@lianglee
Copy link
Member

Agree

@lianglee lianglee merged commit 9f75188 into opensource-socialnetwork:v6.x Jan 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants