Uploaded image for project: 'Blog Application'
  1. Blog Application
  2. BLOG-220

The 'All Blogs Panel' is very slow on large wikis

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 9.13.9
    • None
    • Unknown

    Description

      We noticed that on large wikis the with lots of blogs and blogs posts the 'All Blogs Panel' (Blog.AllBlogsPanel) panel takes a long time to load and sometimes it doesn't even load as the server returns a connection timeout error.

      Note that the panel slowness has an impact on the Panels wizard loading, in the way that it prevents the panels wizard from loading quickly and sometimes from just loading.

      We are reproducing on an XWiki instance with the following amount of data :

      • Total number of pages : 258083
      • Number of blogs : 262
      • Number of blog posts : 37470

      When checking the code of the panel we can see that there is no limit applied on the XWQL query used to get the list of blogs pages available on the wiki, so, the panel is listing all existing blog pages which is causing the slowness when there is a lot of blogs.

      So, to fix the issue, the panel should be improved to paginate the query results.

      The {{documentTree /} macro, which has pagination, could be used with the "filterByClass" parameter to only return blog pages.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mouhb Mohamed Boussaa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: