Uploaded image for project: 'ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)'
  1. ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)
  2. LEP-1856

Document Library performance when large number of folders is slow

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.2.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When the Document Library has a large number of folders, the performance degrades considerably. This is due to 2 calls to the following static method in the view.jsp file:

      DLFolderLocalServiceUtil.getSubfolderIds()

      This method results in a recursive call for each subfolder. When you have a large amount of folders this becomes a huge performance hit. I suggest we do some smart caching of the results of calls to this method. We could clear the cache on additions/removals of folders (since this would not occur as often).

      To test this create a document library with 10 folders, profile, then add 1000 folders, then profile again.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package