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

DocumentUserManager should use a cache

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 12.2
    • User
    • Unknown

    Description

      We introduced in 12.2 a UserManager whose only API for now is to check existence of a user.
      Right now this check can be a bit expensive since it implies to load the XWiki Document to check if there's the right class in it.
      It would be an easy perf improvment to add a cache at least in DocumentUserManager that would contain the information if a reference is an existing user or not. A cache entry would be invalidated whenever the reference is updated / created / deleted.

      Attachments

        Activity

          People

            Unassigned Unassigned
            surli Simon Urli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: