There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-634f910e-a13b-43fc-b112-7a078ed3dc6c XWIKI-22573 In Progress

Modifying a group which contains a lot of users can be very slow

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-c3cbfe50-ee76-432a-a671-cd409fa02952 Changes by Thomas Mortagne on 15/Oct/24 13:20
 
Description: Not that the save of the document itself is slow, but the [automatic invalidation of the security cache|https://github.com/xwiki/xwiki-platform/blob/ master 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.