Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0031772 | Openbravo ERP | 04. Warehouse management | public | 2015-12-24 10:16 | 2016-07-20 11:34 |
|
Reporter | VictorVillar | |
Assigned To | aferraz | |
Priority | immediate | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 3.0PR16Q2 | Fixed in Version | 3.0PR16Q2 | |
Merge Request Status | |
Review Assigned To | dmiguelez |
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 | 0031772: Performance problem when you try to validate the costing rule with high volume of data |
Description | Performance problem when you try to validate the costing rule with high volume of data. Around 6000000 transactions |
Steps To Reproduce | Try to validate the Costing Rule defining an starting date and having 6000000 warehouse transactions.
The process takes so long, more than 24 hours. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0032012 | 3.0PR16Q2 | closed | aferraz | Not possible to either validate a costing rule or create an inventory amount update under some circumstancies | depends on | defect | 0032036 | 3.0PR16Q2 | closed | aferraz | API Change Request: Change m_transaction_trg to avoid execute m_update_inventory when costing related columns are updated | related to | defect | 0033411 | 3.0PR17Q1 | closed | dmiguelez | Bad performance Costing Background process using 3 types of adjustments | related to | defect | 0036612 | | new | Triage Omni WMS | Improve performance of costing rule validation process | causes | defect | 0033937 | | closed | markmm82 | Error in Costing Background Process if first costing rule validated with starting date,previous transactions cost not calculated |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2015-12-24 10:16 | VictorVillar | New Issue | |
2015-12-24 10:16 | VictorVillar | Assigned To | => Triage Finance |
2015-12-24 10:16 | VictorVillar | Modules | => Core |
2015-12-24 10:16 | VictorVillar | Resolution time | => 1421362800 |
2015-12-24 10:16 | VictorVillar | Triggers an Emergency Pack | => No |
2015-12-24 10:17 | VictorVillar | Issue Monitored: networkb | |
2015-12-28 12:56 | VictorVillar | Resolution time | 1421362800 => 1452898800 |
2016-01-07 12:39 | aferraz | Assigned To | Triage Finance => aferraz |
2016-01-07 13:10 | aferraz | Status | new => scheduled |
2016-01-28 10:41 | aferraz | Relationship added | depends on 0032036 |
2016-01-29 14:59 | aferraz | Relationship added | related to 0032012 |
2016-02-09 12:41 | hgbot | Checkin | |
2016-02-09 12:41 | hgbot | Note Added: 0084052 | |
2016-02-09 12:41 | hgbot | Status | scheduled => resolved |
2016-02-09 12:41 | hgbot | Resolution | open => fixed |
2016-02-09 12:41 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/4e9e547d819903e9983b718935144d2c6db4c395 [^] |
2016-02-09 12:42 | dmiguelez | Review Assigned To | => dmiguelez |
2016-02-09 12:42 | dmiguelez | Note Added: 0084053 | |
2016-02-09 12:42 | dmiguelez | Status | resolved => closed |
2016-03-17 10:56 | hudsonbot | Checkin | |
2016-03-17 10:56 | hudsonbot | Note Added: 0085121 | |
2016-07-20 11:26 | aferraz | Relationship added | related to 0033411 |
2016-07-20 11:34 | aferraz | Fixed in Version | => 3.0PR16Q2 |
2016-09-12 18:56 | aferraz | Relationship added | causes 0033937 |
2017-08-04 14:23 | aferraz | Relationship added | related to 0036612 |
Notes |
|
(0084052)
|
hgbot
|
2016-02-09 12:41
|
|
Repository: erp/devel/pi
Changeset: 4e9e547d819903e9983b718935144d2c6db4c395
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Thu Jan 28 09:24:21 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/4e9e547d819903e9983b718935144d2c6db4c395 [^]
Fixes issue 31772: Improve performance in Costing Rule validation
Update M_TRANSACTION_TRG to execute M_UPDATE_INVENTORY only when updated columns are not related to costing (like transactioncost, m_costing_algorithm_id, iscostcalculated, c_currency_id, costing_status, isprocessed, checkpricedifference, manualcostadjustment and iscostpermanent).
Update some methods in CostingRuleProcess and CostingRuleProcessOnProcessHandler to use query.uniqueResult() != null instead of query.count() > 0.
Update initializeOldTrx method in CostingRuleProcess to do an insert and an update in hql instead of doing a loop in java.
Change second loop in updateInventoriesCostAndProcessInitInventories method in CostingRuleProcess to use a scroll instead of looping over a list.
Use new getInventoryLineTransactions method in CostingRuleProcess instead of getInventoryLineTransaction method, which returns a scroll.
Use trx.getPhysicalInventoryLine().getRelatedInventory() instead of getInitIcl(cri.getInitInventory(), icl) in CostingRuleProcess.
Change updateInitInventoriesTrxDate method in CostingRuleProcess to do an update in hql instead of doing a loop in java.
---
M src-db/database/model/triggers/M_TRANSACTION_TRG.xml
M src/org/openbravo/costing/CostingMigrationProcess.java
M src/org/openbravo/costing/CostingRuleProcess.java
M src/org/openbravo/costing/CostingRuleProcessOnProcessHandler.java
---
|
|
|
|
|
|
|
|