Closed (duplicate)
Project:
Group
Version:
8.x-1.x-dev
Component:
Group Node (gnode)
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 May 2017 at 23:43 UTC
Updated:
27 Aug 2019 at 03:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
realityloop commentedNot taking credit for this, posting here from a github gist.
Comment #3
realityloop commentedComment #4
gro commentedUpdates variable assignment of drupal_static to use pass by reference.
Comment #5
realityloop commentedThis patch is just to mitigate some of these performance issues (you probably don't want to use it yourself).
Comment #6
chop commentedMotivation for this patch is solid. Re-rolling against the latest 8.x-1.x branch to work with latest rc2.
It may be that some of the performance issues are mitigated by Node Grants changes for anonymous visitors.
Comment #7
chop commentedHiding this patch to bypass View Access checks now that Group Node has addressed performance issues with anonymous visitors and access checks.
See commit 11ef18a09c7d2c220a10a485802ffec155068a7e
Comment #8
visabhishek commentedStill, I am facing the performance issue based on the number of group membership, I want to share some statistic based on my test.
Now I am trying to access the same group content list page (group/1/content/) from both users with apache benchmark and result are as follow
User1

User2

I am trying to cache "gnode_node_grants" permission strings based on user and result is very exciting.
User1

User2

I am attaching initial patch where I am trying to cache the permissions to check " is I am on right path ?". ( Right now I am not invalidating the cache we can discuss latter for this)
Comment #10
idebr commentedClosed #3024031: Performance of gnode_node_grants as a duplicate issue.
Comment #11
jayelless commentedWhat is the current status of this issue? Now that RC3 with the re-factored caching is out, should this issue be closed ad "fixed"?
Comment #12
jayelless commentedRefer #3029849: Statically cache gnode_node_grants(), which is a duplicate.