[ https://issues.apache.org/jira/browse/OFBIZ-12680 ]


    Jacques Le Roux deleted comment on OFBIZ-12680:
    -----------------------------------------

was (Author: jira-bot):
Commit 43b09152f12053b782f3b1a91b058ebda3509c20 in ofbiz-framework's branch 
refs/heads/trunk from Jacques Le Roux
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=43b09152f1 ]

Improved: Optimize the 'get average product rating' method logic (OFBIZ-12680)

We missed an "on-event-update-area area-target" element in widget-common.xsd
Not sure it'e enough to fix the current issue in StoreForms.xml

Also while at it removes trailing spages in StoreForms.xml (no other changes)


> Optimize the 'get average product rating' method logic
> ------------------------------------------------------
>
>                 Key: OFBIZ-12680
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12680
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: product
>    Affects Versions: Upcoming Branch
>            Reporter: sourabh jain
>            Assignee: sourabh jain
>            Priority: Major
>         Attachments: tiny-gizmo (1).png
>
>
> *#Problem*: When calculating the average product rating for any product, the 
> 'get average product rating' method first retrieves the whole list of reviews 
> and then iterates all product reviews to determine.
> The approach takes time to respond when there are thousands of reviews of a 
> single product. It takes significantly longer to display many products 
> together with their reviews. (e.g. search result page)
> *#Solution*: We can use the 'average' function to get the average rather than 
> iterating all the product reviews.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to