Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1709

Speedup portal loading

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.1.9
    • None
    • Blocks: Portal
    • None

    Description

      Portal loads user profiles (when using eg AuthenticationProfileManager) with Castor every time the user logs in and this is very slow. This patch allows to cache the result for further invocations. However the coplet instance profiles are handled in a special way, after being obtained by mapping the CopletInstanceDataManager they are cloned to ensure that every user gets its own copy of the coplets. Thus this bug depends on http://issues.apache.org/jira/browse/COCOON-1708 Allow CopletInstanceDataManager to be cloneable.

      An improvement would be to store cached objects in Cocoon Store, the provided patch currently uses a simple HashMap to store profiles. Note that the key of the object is the URI returned by the source. This is important because different values of uri in resolver.resolveURI(uri) could return the same source, ie source.getURI() could be the same, so only different objects are stored in the Map.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--20051212-portal-MapProfileLS
          3 kB
          Jean-Baptiste Quenot
        2. 20051222-MapProfileLS.java
          4 kB
          Jean-Baptiste Quenot
        3. 20051222-MapProfileLS.java
          4 kB
          Jean-Baptiste Quenot
        4. portal-config
          2 kB
          Jean-Baptiste Quenot
        5. UserRoleSourceFactory.java
          5 kB
          Jean-Baptiste Quenot

        Activity

          People

            Unassigned Unassigned
            jbq@anyware-tech.com Jean-Baptiste Quenot
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: