http://ofbiz.116.s1.nabble.com/jira-Commented-OFBIZ-11823-Refactor-PickListServices-isBinComplete-method-to-remove-unnecessary-iters-tp4754180.html
> Refactor PickListServices#isBinComplete method to remove unnecessary iterations
> -------------------------------------------------------------------------------
>
> Key: OFBIZ-11823
> URL:
https://issues.apache.org/jira/browse/OFBIZ-11823> Project: OFBiz
> Issue Type: Improvement
> Components: product/facility
> Affects Versions: Trunk
> Reporter: Pawan Verma
> Assignee: Pawan Verma
> Priority: Minor
> Attachments: OFBIZ-11823.patch, OFBIZ-11823.patch
>
>
> PickListServices#isBinComplete() is used to check if picklistBin is complete.
> This method reduces system performance when a picklistBin contains heavy no of items in it, this method iterator all the items to check the status of the item to validate if the bin is complete or not.
> Instead of iteration, we can add itemStatusId != PICKITEM_COMPLETED condition while fetching records from the entity using queryCount() method and if we found count then picklistBin is not complete.
> It can be a major performance factor on a production system working on heavy orders.