There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-8f608d63-fa70-428a-a458-1c08da7df120 XWIKI-22573 Closed

The invalidation of a modifed group which contains a lot of users can be very slow

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-716a90cd-6c85-4b76-9621-5e44c190ca34 Changes by Thomas Mortagne on 28/Oct/24 09:05
 
Description: According to [~caubin], the save of the document itself is not really the main problem , but the [automatic invalidation of the security cache|https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-16.8.0/xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authorization/xwiki-platform-security-authorization-bridge/src/main/java/org/xwiki/security/authorization/internal/DefaultSecurityCacheRulesInvalidatorListener.java] for all the group members (especially, gathering those group members, just after the save) can take a long time.

To reproduce: write a script which add 10 000 XWiki.XWikiGroups with different members in a XWiki.TestGroup document

Adding the first user took around 100 ms for me, but any new add takes about 30s when the document already contains 10 000 members.

We should try to find ways to optimize this.