Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034130Openbravo ERP04. Warehouse managementpublic2016-09-29 14:162016-10-05 19:35
ngarcia 
aferraz 
urgentmajoralways
closedfixed 
5
 
3.0PR16Q4 
dmiguelez
Core
No
0034130: Costing Migration Process takes too long with big amount of records in m_transaction table
Costing Migration Process takes too long with big amount of records in m_transaction table

In an environment with 3300000 records in the m_transaction it lasted 40 hours
In an environment without the new costing engine (previous to 3.0MP13) and a big quantity of transactions (e.g. 1500000)
As system admin role:
   Upgrade it to the last version
   Launch the Costing Migration process
   Check its first launch takes too long
No tags attached.
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 
related to defect 0036675 closed markmm82 [Costing Migration Process]: Transactions related with closing inventory lines do not have an entry in Transaction Cost tab 
Issue History
2016-09-29 14:16ngarciaNew Issue
2016-09-29 14:16ngarciaAssigned To => Triage Finance
2016-09-29 14:16ngarciaModules => Core
2016-09-29 14:16ngarciaResolution time => 1476914400
2016-09-29 14:16ngarciaTriggers an Emergency Pack => No
2016-09-29 14:17ngarciaSummaryCosting Migration Process lasts too long with big amount of records in m_transaction table => Costing Migration Process takes too long with big amount of records in m_transaction table
2016-09-29 14:17ngarciaDescription Updatedbug_revision_view_page.php?rev_id=13272#r13272
2016-09-29 14:17ngarciaRelationship addedrelated to 0030451
2016-09-29 17:53aferrazStatusnew => scheduled
2016-09-29 17:53aferrazAssigned ToTriage Finance => aferraz
2016-09-30 14:13hgbotCheckin
2016-09-30 14:13hgbotNote Added: 0090433
2016-09-30 14:13hgbotStatusscheduled => resolved
2016-09-30 14:13hgbotResolutionopen => fixed
2016-09-30 14:13hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3d435a4c1794c15ab3f778c5e182c8d34a7a1e93 [^]
2016-09-30 14:13hgbotCheckin
2016-09-30 14:13hgbotNote Added: 0090434
2016-09-30 14:13aferrazReview Assigned To => dmiguelez
2016-09-30 14:13aferrazStatusresolved => closed
2016-09-30 14:13aferrazFixed in Version => 3.0PR16Q4
2016-10-05 19:35hudsonbotCheckin
2016-10-05 19:35hudsonbotNote Added: 0090501
2016-10-05 19:35hudsonbotCheckin
2016-10-05 19:35hudsonbotNote Added: 0090502
2017-05-09 12:30aferrazRelationship addedrelated to 0035959
2017-08-23 15:06aferrazRelationship addedrelated to 0036675

Notes
(0090433)
hgbot   
2016-09-30 14:13   
Repository: erp/devel/pi
Changeset: 3d435a4c1794c15ab3f778c5e182c8d34a7a1e93
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Thu Sep 22 17:37:16 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/3d435a4c1794c15ab3f778c5e182c8d34a7a1e93 [^]

Fixes issue 34130: Performance problem in Costing Migration process

- Remove unneeded sql functions registration.
- Move cost reset in m_transaction and m_transaction_cost to new resetTransactionCosts method.
- Run resetTransactionCosts(), fixLegacyCostingCurrency(), updateWithZeroCostRemainingTrx(), insertTrxCosts() and insertStandardCosts() methods without triggers.
- Avoid loop in fixLegacyCostingCurrency() method and make the update with one query per client.
- Avoid loop in updateWithZeroCostRemainingTrx() method and make the update with one query per legal.
- Avoid innecessary join with ad_user table in insertTrxCosts() and insertStandardCosts() methods.

---
M src/org/openbravo/costing/CostingMigrationProcess.java
---
(0090434)
hgbot   
2016-09-30 14:13   
Repository: erp/devel/pi
Changeset: e0f24c050e4a1d3934cd78c88dead168d8c30b8b
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Fri Sep 30 14:12:43 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e0f24c050e4a1d3934cd78c88dead168d8c30b8b [^]

Related to issue 34130: Do not remove sql functions registering

---
M src/org/openbravo/costing/CostingMigrationProcess.java
---
(0090501)
hudsonbot   
2016-10-05 19:35   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9f948cce366c [^]
Maturity status: Test
(0090502)
hudsonbot   
2016-10-05 19:35   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9f948cce366c [^]
Maturity status: Test