|
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. |
|