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

Implement Cache on getTreeList in DBTreeListClass

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 3.0 M2, 2.5.2, 2.6.2, 2.7.1
    • Component/s: {Unused} APIs
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      The following function can be called a lot in livetables for TreeList fields. The Map that we pass to it is retrieved from cache but the result of getTreeList is not and it can be time consuming to generate the data from getTreeList which has no reason to change.

      protected List<ListItem> getTreeList(Map<String, List<ListItem>> treemap, Map<String, ListItem> map,
      XWikiContext context)

      { List<ListItem> list = new ArrayList<ListItem>(); addToTreeList(list, treemap, map, "", context); return list; }

        Attachments

          Activity

            People

            • Assignee:
              sdumitriu Sergiu Dumitriu
              Reporter:
              ludovic Ludovic Dubost
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: