Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028111Openbravo ERP04. Warehouse managementpublic2014-11-06 12:142015-03-20 12:35
umartirena 
umartirena 
normalmajoralways
closedfixed 
5
 
3.0PR15Q2 
eduardo_Argal
Core
No
0028111: InitializeMTransCostDateacctData modulescript has several performance issues
"InitializeMTransCostDateacctData" modulescript has several performance issues with big amount of data. This happens because modulescripts are executed when the indexes of database are not created yet.
Execute update.database on a database with big amount of data.
Remove the "InitializeMTransCostDateacctData" modulescript and implement that functionality in the "Costing Background process". Create a preference when the process has been executed in order to control that only is executed once.
Add a verification on "Valued Stock Report" and on "Sales Invoice Dimensional Report" to be able to run it only after the execution of "Costing Background process".
No tags attached.
depends on backport 00289513.0PR15Q1.1 closed umartirena InitializeMTransCostDateacctData modulescript has several performance issues 
causes defect 00294403.0PR15Q3 closed umartirena In a environment with costs not calculated the user can not get the sales invoice dimensional report 
Issue History
2014-11-06 12:14umartirenaNew Issue
2014-11-06 12:14umartirenaAssigned To => umartirena
2014-11-06 12:14umartirenaModules => Core
2014-11-06 12:14umartirenaTriggers an Emergency Pack => No
2014-11-06 12:14umartirenaStatusnew => scheduled
2014-11-06 12:14umartirenafix_in_branch => pi
2015-02-02 10:46umartirenaTarget Version3.0PR14Q4 => 3.0PR15Q2
2015-02-02 10:46umartirenafix_in_branchpi =>
2015-02-16 12:29plujanStatusscheduled => acknowledged
2015-02-16 12:30plujanStatusacknowledged => scheduled
2015-02-16 12:30plujanfix_in_branch => pi
2015-02-16 16:02hgbotCheckin
2015-02-16 16:02hgbotNote Added: 0074515
2015-02-16 16:02hgbotStatusscheduled => resolved
2015-02-16 16:02hgbotResolutionopen => fixed
2015-02-16 16:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7a7b3954ec5964e56e2ef8e2d3c5d1589204dc4a [^]
2015-02-17 10:30hgbotCheckin
2015-02-17 10:30hgbotNote Added: 0074544
2015-02-18 11:48hgbotCheckin
2015-02-18 11:48hgbotNote Added: 0074589
2015-02-18 14:06hgbotCheckin
2015-02-18 14:06hgbotNote Added: 0074601
2015-02-23 05:11hudsonbotCheckin
2015-02-23 05:11hudsonbotNote Added: 0074763
2015-02-23 05:11hudsonbotCheckin
2015-02-23 05:11hudsonbotNote Added: 0074769
2015-02-23 05:11hudsonbotCheckin
2015-02-23 05:11hudsonbotNote Added: 0074781
2015-02-23 05:11hudsonbotCheckin
2015-02-23 05:11hudsonbotNote Added: 0074784
2015-03-10 09:57dmitry_mezentsevNote Added: 0075365
2015-03-13 10:37dmitry_mezentsevNote Added: 0075525
2015-03-18 10:21umartirenaReview Assigned To => eduardo_Argal
2015-03-18 10:21umartirenafix_in_branchpi =>
2015-03-20 12:35eduardo_ArgalNote Added: 0075789
2015-03-20 12:35eduardo_ArgalStatusresolved => closed
2015-03-27 16:33dmitry_mezentsevRelationship addedcauses 0029440

Notes
(0074515)
hgbot   
2015-02-16 16:02   
Repository: erp/devel/pi
Changeset: 7a7b3954ec5964e56e2ef8e2d3c5d1589204dc4a
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Mon Feb 16 16:00:25 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/7a7b3954ec5964e56e2ef8e2d3c5d1589204dc4a [^]

Fixes bug 28111, Fixes bug 28951: InitCostDateacct modulescript has been removed

The functionality that was being implemented in the modulescript now will be done in Costing Background process. An oncreatedefault has been added in dateacct column because it has a constraint of not null. The date set to the column will be 01-01-1970, and this date will be used as a reference while updating it in Costing Background process

---
M src-db/database/model/tables/M_TRANSACTION_COST.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/costing/CostingBackground.java
M src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJR.java
M src/org/openbravo/erpCommon/ad_reports/ReportValuationStock.java
A build/javasqlc/src/org/openbravo/costing/InitializeCostingMTransCostDateacctData.java
A src/org/openbravo/costing/InitializeCostingMTransCostDateacct_data.xsql
R src-util/modulescript/build/classes/org/openbravo/modulescript/InitializeMTransCostDateacct.class
R src-util/modulescript/build/classes/org/openbravo/modulescript/InitializeMTransCostDateacctData.class
R src-util/modulescript/src/org/openbravo/modulescript/InitializeMTransCostDateacct.java
R src-util/modulescript/src/org/openbravo/modulescript/InitializeMTransCostDateacct_data.xsql
---
(0074544)
hgbot   
2015-02-17 10:30   
Repository: erp/devel/pi
Changeset: e2e44617a15698fd1dbc40a7d50888784bfb41db
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Tue Feb 17 10:28:34 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e2e44617a15698fd1dbc40a7d50888784bfb41db [^]

Related to bug 28111,related to bug 28951: Remove xsql Data class file

---
R build/javasqlc/src/org/openbravo/costing/InitializeCostingMTransCostDateacctData.java
---
(0074589)
hgbot   
2015-02-18 11:48   
Repository: erp/devel/pi
Changeset: bb5fb83de69573b861872d87fcd01da7a6bf169f
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Wed Feb 18 11:46:11 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/bb5fb83de69573b861872d87fcd01da7a6bf169f [^]

Related to bug 28111,related to bug 28951: Fix on oncreatedefault

oncreatedefault statement of dateacct has been changed in order to work both in oracle and postgres with different date formats.
Also to_date has been removed from background process in order to allways the filter work.

---
M src-db/database/model/tables/M_TRANSACTION_COST.xml
M src/org/openbravo/costing/InitializeCostingMTransCostDateacct_data.xsql
---
(0074601)
hgbot   
2015-02-18 14:06   
Repository: erp/devel/pi
Changeset: 50eefca6fdf24dce85e7fd364e57c85a7b551d73
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Wed Feb 18 14:02:30 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/50eefca6fdf24dce85e7fd364e57c85a7b551d73 [^]

Related to bug 28111,related to bug 28951: Fix on where clause

Filter m_transaction_cost records in Costing Background process using same dateformat that has been used in oncreatedefault to insert values

---
M src/org/openbravo/costing/InitializeCostingMTransCostDateacct_data.xsql
---
(0074763)
hudsonbot   
2015-02-23 05:11   
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/6856352d7235 [^]
Maturity status: Test
(0074769)
hudsonbot   
2015-02-23 05:11   
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/6856352d7235 [^]
Maturity status: Test
(0074781)
hudsonbot   
2015-02-23 05:11   
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/6856352d7235 [^]
Maturity status: Test
(0074784)
hudsonbot   
2015-02-23 05:11   
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/6856352d7235 [^]
Maturity status: Test
(0075365)
dmitry_mezentsev   
2015-03-10 09:57   
The issue is resolved but not yet closed for 22 days.
(0075525)
dmitry_mezentsev   
2015-03-13 10:37   
25 days!!!
(0075789)
eduardo_Argal   
2015-03-20 12:35   
Code Reviewed and tested. No module script is run and background process for costing does the computation for dateacct