Openbravo Issue Tracking System - Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0029131 | Modules | Warehouse Picking | public | 2015-03-04 16:43 | 2015-04-09 11:28 | |||||||
Reporter | egoitz | |||||||||||
Assigned To | eduardo_Argal | |||||||||||
Priority | immediate | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Regression date | ||||||||||||
Regression introduced by commit | ||||||||||||
Regression level | ||||||||||||
Review Assigned To | dmiguelez | |||||||||||
Support ticket | ||||||||||||
OBNetwork customer | ||||||||||||
Regression introduced in release | ||||||||||||
Summary | 0029131: Bad performance and degradation on the execution on the generate picking list process | |||||||||||
Description | The process takes long becuase each generation takes long due to the memory usage. There is also degradation and the time for each execution of the loop increases. | |||||||||||
Steps To Reproduce | -Execute the process Generate picking list for a order with 2600 lines. | |||||||||||
Proposed Solution | On the method processOrder from Utilities java class you can replace the loop for (OrderLine orderLine : order.getOrderLineList()) { with a loop that reads all the id's obtained with a query object: final StringBuilder hqlString = new StringBuilder(); hqlString.append(" select e.id "); hqlString.append(" from OrderLine as e"); hqlString.append(" where e.salesOrder.id = :order"); Query query = OBDal.getInstance().getSession().createQuery(hqlString.toString()); query.setParameter("order", order.getId()); List<String> stroLines = query.list(); for ( String strline : stroLines ) { OrderLine orderLine = OBDal.getInstance().get(OrderLine.class, strline) That improves a lot the performance of each execution but does not solve the degradation problem. | |||||||||||
Additional Information | ||||||||||||
Tags | Performance | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2015-03-04 16:43 | egoitz | New Issue | ||||||||||
2015-03-04 16:43 | egoitz | Assigned To | => naiaramartinez | |||||||||
2015-03-04 16:43 | egoitz | Resolution time | => 1428444000 | |||||||||
2015-03-04 16:43 | egoitz | Tag Attached: Performance | ||||||||||
2015-03-04 16:44 | egoitz | Assigned To | naiaramartinez => Sandrahuguet | |||||||||
2015-03-04 17:15 | egoitz | Note Added: 0075162 | ||||||||||
2015-03-04 17:34 | egoitz | Resolution time | 1428444000 => 1425942000 | |||||||||
2015-03-04 17:34 | egoitz | Priority | urgent => immediate | |||||||||
2015-03-04 17:56 | Sandrahuguet | Assigned To | Sandrahuguet => umartirena | |||||||||
2015-03-06 15:36 | egoitz | Relationship added | related to 0029177 | |||||||||
2015-03-10 11:24 | hgbot | Checkin | ||||||||||
2015-03-10 11:24 | hgbot | Note Added: 0075371 | ||||||||||
2015-03-10 11:24 | hgbot | Status | new => resolved | |||||||||
2015-03-10 11:24 | hgbot | Resolution | open => fixed | |||||||||
2015-03-10 11:24 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.pickinglist/rev/e8a78f938850a44a0922ac2d70252ae786d14147 [^] | |||||||||
2015-03-11 10:53 | hgbot | Checkin | ||||||||||
2015-03-11 10:53 | hgbot | Note Added: 0075444 | ||||||||||
2015-03-23 13:41 | Sandrahuguet | Assigned To | umartirena => eduardo_Argal | |||||||||
2015-04-09 11:28 | dmiguelez | Review Assigned To | => dmiguelez | |||||||||
2015-04-09 11:28 | dmiguelez | Note Added: 0076408 | ||||||||||
2015-04-09 11:28 | dmiguelez | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|