Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-3529 Extend Faceted Navigation usecases
  3. CMS-3619

Add caching to populateFacetValueCountMap in FacetedNavigationEngineThirdImpl

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • None
    • r2.12.00
    • repository-core
    • None

    Description

      for example something like:

      private WeakHashMap<IndexReader, Map<String, int[]>> cache = new WeakHashMap<IndexReader, Map<String, int[]>>();

      Map<String, int[]> termDocCache = cache.get(indexReader);
      if(termDocCache == null)

      { termDocCache = new HashMap<String, int[]>(); cache.put(indexReader, termDocCache); }

      etc etc

      note that it will be accessed concurrent

      Attachments

        Activity

          People

            spelissier Sylvain PĂ©lissier (Inactive)
            aschrijvers Ard Schrijvers
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: