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

XWiki#getClassList() is very slow on large instances - object editor takes a long time to load on large instances

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 16.4.6
    • Old Core
    • Unknown

    Description

      The function to fetch all XClasses of XWiki is using the following query, which is very slow on large XWiki instances:

      select doc.fullName from XWikiDocument as doc where (doc.xWikiClassXML is not null and doc.xWikiClassXML like '<%')

      This function is called when loading the object editor, for displaying the new object form. On large instances, this function is very slow which makes the loading of the object editor very slow for any document, regardless of the number of objects of the document in question.

      The field xWikiClassXML in the documents table is not indexed, a manual index on this field may be a workaround.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lucaa Anca Luca
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: