Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-12331

Improve velocity of PartyHelper.getPartyName() with the cache

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Done
    • Release Branch 18.12, Trunk
    • 18.12.01
    • party
    • None

    Description

      The class PartyHelper is massively used to resolve the name of a party without know is type.

       

      
       <field name="organizationPartyId" title="${uiLabelMap.ProductOrganization}">
           <display description="${groovy: org.apache.ofbiz.party.party.PartyHelper.getPartyName(delegator, organizationPartyId, true);} [${organizationPartyId}]"/>
       </field>
      
      

      A party name have few change over time, or the PartyHelper.getPartyName function call the database at each call.

      On huge screen, we distinctly clearly the database latency.

      So for a cold data, no reason to use the cache.

       

      Attachments

        1. OFBIZ-12331.patch
          1 kB
          Nicolas Malin

        Activity

          People

            nmalin Nicolas Malin
            nmalin Nicolas Malin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: