[
https://issues.apache.org/jira/browse/OFBIZ-12331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17422236#comment-17422236
]
Jacques Le Roux commented on OFBIZ-12331:
-----------------------------------------
Hi Nicolas,
That sounds reasonnable to me, +1
> Improve velocity of PartyHelper.getPartyName() with the cache
> -------------------------------------------------------------
>
> Key: OFBIZ-12331
> URL: https://issues.apache.org/jira/browse/OFBIZ-12331
> Project: OFBiz
> Issue Type: Improvement
> Components: party
> Affects Versions: Release Branch 18.12, Trunk
> Reporter: Nicolas Malin
> Assignee: Nicolas Malin
> Priority: Major
> Attachments: OFBIZ-12331.patch
>
>
> The class PartyHelper is massively used to resolve the name of a party
> without know is type.
>
> {code:java}
> <field name="organizationPartyId" title="${uiLabelMap.ProductOrganization}">
> <display description="${groovy:
> org.apache.ofbiz.party.party.PartyHelper.getPartyName(delegator,
> organizationPartyId, true);} [${organizationPartyId}]"/>
> </field>
> {code}
> 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.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)