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

Rendering labels heatmap or space labels overview needs high mysql performance and leads to a timeout

    XMLWordPrintable

Details

    Description

      After upgrading to Confluence 4.2.4 pages including the popular label heatmap and space labels overview page take a very long time to load while MySQL is running on a high load proceeding the statement:

      select label5_.LABELID as LABELID, label5_.NAME as NAME, label5_.OWNER as OWNER, label5_.NAMESPACE as NAMESPACE, label5_.CREATIONDATE as CREATION5_, label5_.LASTMODDATE as LASTMODD6_, label5_.LABELID as x0_0_, count(label5_.LABELID) as x1_0_ from CONTENT spaceconte0_, SPACES space1_, CONTENT_LABEL labelling2_ left outer join ATTACHMENTS attachment3_ on labelling2_.ATTACHMENTID=attachment3_.ATTACHMENTID left outer join CONTENT contentent4_ on labelling2_.CONTENTID=contentent4_.CONTENTID, LABEL label5_ where spaceconte0_.CONTENTTYPE in ('com.atlassian.confluence.pages.AbstractPage', 'USERSTATUS', 'PAGE', 'BLOGPOST', 'CUSTOM', 'MAIL', 'SPACEDESCRIPTION', 'com.atlassian.confluence.core.SpaceContentEntityObject') and labelling2_.LABELID=label5_.LABELID and ((label5_.NAMESPACE='global'  and labelling2_.LABELID=label5_.LABELID)and((contentent4_.CONTENTID=spaceconte0_.CONTENTID )or(attachment3_.PAGEID=spaceconte0_.CONTENTID ))and(spaceconte0_.SPACEID=space1_.SPACEID )and(lower(space1_.SPACEKEY)='leitung' )and((attachment3_.ATTACHMENTID is not null )or(contentent4_.CONTENT_STATUS!='deleted' ))) group by  label5_.LABELID , label5_.NAMESPACE , label5_.OWNER , label5_.NAME , label5_.LASTMODDATE , label5_.CREATIONDATE order by  count(label5_.LABELID)DESC limit 25
      

      Actually we have the following number of records in the involved tables:

      CONTENT_LABEL 5.105 records
      ATTACHMENTS 4.777 records
      CONTENT 23.891 records
      SPACES 24

      For avoiding this performance issues I had to remove all label heatmaps from the Home pages but cause I can't disable the label overview and we work quite a lot with labels I urgently need a bug fix for this.

      Attachments

        Issue Links

          Activity

            People

              slancashire Steve Lancashire (Inactive)
              0038f8321e0c Stefan Kahlhöfer (Novatec)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: