Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-78301

Pages with a large amount of likes cause performance issues

    XMLWordPrintable

Details

    Description

      Issue Summary

      When there is a large number of likes on a page (1000+), it takes a significant amount of time to load (1 minute), the likes data being fetched seems to be the reason behind this behaviour.

      Steps to Reproduce

      1. Find a page with 1.000+ likes (all users need custom profile pictures stored as attachments).
      2. Check the loading time of /rest/likes/1.0/content/<CONTENT_ID>/likes?commentLikes=true (This might be fast depending on the cache state)
      3. Clear the cache Attachment ID in the Cache Management
      4. Check the loading time of /rest/likes/1.0/content/<CONTENT_ID>/likes?commentLikes=true (This should take 1-2 minute)
      5. Check again (Should be fast again as the Cache is filled)
      6. Delete an attachment from any page in the system
      7. Check the number of cache entires for the Attachment ID cache (Should be 0, as the cache was cleared from trashing an attachment)
      8. Check the likes loading time again (Should be slow again)

      Expected Results

      Pages with a large amount of likes shouldn't take a very long time to load

      Actual Results

      Pages with a large amount of likes take a very long time to load

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mkurdi@atlassian.com Mohamed K
              Votes:
              15 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated: