Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044610Retail ModulesMobile Warehouse operationspublic2020-07-14 18:102020-08-21 09:24
gsuarez 
Retail 
highmajoralways
newopen 
5
 
 
No
0044610: Bad performance into the selector on PutAway Process
The customer had been have several performance problem when they trying to filter into this selector over a warehouse with a lot of tasks rows (this around to 1.800.000). After apply the filter, the response take more than3 minutes to provide the results.

We detect the problem into the query used to filter where this try to compare the filter condition in different entities at the same time (Product, Bin and Attribute Set Instance) using the OR operator. We execute this query by each entity and we get a better performance activity in each case.
Prepare an environment with a lot of data to apply the filter (you can use the environment test of customer).
open the Mobile Warehouse Operation
open the selector where you pick the put away process.
Search for any product.
As workaround we change the behavior of the query to this:
Split the query doing one query for each entity, we merge the results and deleted the duplicate rows.
No tags attached.
diff TaskGeneratorLine.diff (1,825) 2020-07-14 18:12
https://issues.openbravo.com/file_download.php?file_id=14766&type=bug
diff StorageDetail.diff (11,958) 2020-07-14 18:13
https://issues.openbravo.com/file_download.php?file_id=14767&type=bug
Issue History
2020-07-14 18:10gsuarezNew Issue
2020-07-14 18:10gsuarezAssigned To => Retail
2020-07-14 18:10gsuarezResolution time => 1596492000
2020-07-14 18:10gsuarezTriggers an Emergency Pack => No
2020-07-14 18:12gsuarezFile Added: TaskGeneratorLine.diff
2020-07-14 18:13gsuarezFile Added: StorageDetail.diff
2020-07-14 18:16gsuarezNote Added: 0121451
2020-08-17 18:47guilleaerNote Added: 0122105
2020-08-21 09:24marvintmResolution time1596492000 =>
2020-08-21 09:24marvintmNote Added: 0122229
2020-08-21 09:24marvintmTypedefect => design defect

Notes
(0121451)
gsuarez   
2020-07-14 18:16   
We modified the next java classes as workaround to this.

modules/org.openbravo.warehouse.advancedwarehouseoperations/src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/datasources/taskgenerationcandidates/TGC_StorageDetail_PA.java

modules/org.openbravo.warehouse.advancedwarehouseoperations/src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/classes/
replace/TaskGeneratorLine.java
(0122105)
guilleaer   
2020-08-17 18:47   
Current preferences should be enough to fix this performance problem.

http://wiki.openbravo.com/wiki/Modules:Advanced_Warehouse_Operations#Device_Search_Mode [^]

please check
(0122229)
marvintm   
2020-08-21 09:24   
We have changed this issue to design defect. In the end, the only solution we have for these kinds of problems is to refactor the selector so that the user specifies which property he wants to filter by, like we did in the WebPOS with the customer or receipt selectors.

This change however is not trivial, and that's why we changed it to design defect.