Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-22913

Analyzing mentions on a document with a huge number of objects takes very long

    XMLWordPrintable

Details

    • Unknown

    Description

      Steps to reproduce:

      1. Create a group with 100k users
      2. Add another user to the group

      Expected result:

      The mentions analysis is fast as there is nothing to analyze.

      Actual result:

      The mentions analysis task takes very long (several minutes at least).

      This is caused by the mentions analyzer doing a linear search for the existing objects in https://github.com/xwiki/xwiki-platform/blob/99353cb06bf62de1819d1bc5d757e881a3f35f38/xwiki-platform-core/xwiki-platform-mentions/xwiki-platform-mentions-default/src/main/java/org/xwiki/mentions/internal/analyzer/UpdatedDocumentMentionsAnalyzer.java#L204-L209

      This exact code was introduced in XWIKI-17895 but I don't know if similar code existed before.

      Attachments

        Activity

          People

            MichaelHamann Michael Hamann
            MichaelHamann Michael Hamann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: