Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0024006 | Openbravo ERP | 04. Warehouse management | public | 2013-06-06 12:29 | 2015-08-05 09:37 |
|
Reporter | VictorVillar | |
Assigned To | pramakrishnan | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
Target Version | 3.0MP25 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | pramakrishnan |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0024006: The Costing Migration Process should be improved to avoid performance problems. |
Description | There is a performance problem in the CostingMigrationProcess.java in line: 421
OBDal.getInstance().refresh(icl.getPhysInventory());
For each transaction the time spent for the process is more or less 5/10 seconds.
The solution should be create a new column in the physical inventory line table, by default should be null. In the costing rule process (CostingRuleProcess.java, method createCostingRuleInits, line 312 when inserting inventory lines) there will be a relation between the Closing inventory line and the opening inventory line. It means that the Opening Invenotry line should have the Closing inventory line ID.
Then, in the moment that the cost is calculated for the Opening Inventory line , the process should use this new relation. Please check the Costing Migration Process and when you validate a new costing rule |
Steps To Reproduce | There is a performance problem in the CostingMigrationProcess.java in line: 421
OBDal.getInstance().refresh(icl.getPhysInventory());
For each transaction the time spent for the process is more or less 5/10 seconds.
|
Proposed Solution | The solution should be create a new column in the physical inventory line table, by default should be null. In the costing rule process (CostingRuleProcess.java, method createCostingRuleInits, line 312 when inserting inventory lines) there will be a relation between the Closing inventory line and the opening inventory line. It means that the Opening Invenotry line should have the Closing inventory line ID.
Then, in the moment that the cost is calculated for the Opening Inventory line , the process should use this new relation. Please check the Costing Migration Process and when you validate a new costing rule |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0030451 | | closed | aferraz | Performance Problems on the Costing Migration Process | related to | defect | 0035959 | | closed | markmm82 | Performance problem in Costing Migration Process with high volume of records in m_transaction table |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2013-06-06 12:29 | VictorVillar | New Issue | |
2013-06-06 12:29 | VictorVillar | Assigned To | => dmiguelez |
2013-06-06 12:29 | VictorVillar | Modules | => Core |
2013-06-06 12:29 | VictorVillar | Resolution time | => 1373148000 |
2013-06-06 12:29 | VictorVillar | Triggers an Emergency Pack | => No |
2013-06-06 12:29 | VictorVillar | Issue Monitored: networkb | |
2013-06-12 11:37 | pramakrishnan | Assigned To | dmiguelez => pramakrishnan |
2013-06-12 11:37 | pramakrishnan | Status | new => scheduled |
2013-06-12 11:37 | pramakrishnan | fix_in_branch | => pi |
2013-06-27 10:50 | hgbot | Checkin | |
2013-06-27 10:50 | hgbot | Note Added: 0059695 | |
2013-06-27 10:50 | hgbot | Status | scheduled => resolved |
2013-06-27 10:50 | hgbot | Resolution | open => fixed |
2013-06-27 10:50 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/65f24328639f32543a50accc7f0466fab520080a [^] |
2013-06-27 10:50 | hgbot | Checkin | |
2013-06-27 10:50 | hgbot | Note Added: 0059696 | |
2013-06-27 11:11 | pramakrishnan | Review Assigned To | => pramakrishnan |
2013-06-27 11:11 | pramakrishnan | Note Added: 0059699 | |
2013-06-27 11:11 | pramakrishnan | Status | resolved => closed |
2013-06-28 22:51 | hudsonbot | Checkin | |
2013-06-28 22:51 | hudsonbot | Note Added: 0059780 | |
2013-06-28 22:51 | hudsonbot | Checkin | |
2013-06-28 22:51 | hudsonbot | Note Added: 0059781 | |
2015-08-05 09:37 | ngarcia | Relationship added | related to 0030451 |
2017-05-09 12:37 | aferraz | Relationship added | related to 0035959 |
Notes |
|
(0059695)
|
hgbot
|
2013-06-27 10:50
|
|
Repository: erp/devel/pi
Changeset: 65f24328639f32543a50accc7f0466fab520080a
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Tue Jun 25 17:24:28 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/65f24328639f32543a50accc7f0466fab520080a [^]
Fixed bug 24006 Costing Migration should be improved to avoid performance problems
---
M src-db/database/model/tables/M_INVENTORYLINE.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/OBUISEL_SELECTOR.xml
M src/org/openbravo/costing/CostingMigrationProcess.java
M src/org/openbravo/costing/CostingRuleProcess.java
---
|
|
|
(0059696)
|
hgbot
|
2013-06-27 10:50
|
|
Repository: erp/devel/pi
Changeset: 0e12840623f5ddd32a987b6285134b2f0b0f671a
Author: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at> openbravo.com>
Date: Wed Jun 26 20:36:13 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/0e12840623f5ddd32a987b6285134b2f0b0f671a [^]
Related to issue 24006
---
M src/org/openbravo/costing/CostingMigrationProcess.java
M src/org/openbravo/costing/CostingRuleProcess.java
---
|
|
|
|
Code Review + Testing - OK. |
|
|
|
|
|
|
|