Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0029319 | Openbravo ERP | 04. Warehouse management | public | 2015-03-17 16:25 | 2015-05-12 17:40 |
|
Reporter | ngarcia | |
Assigned To | aferraz | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR15Q3 | |
Merge Request Status | |
Review Assigned To | eduardo_Argal |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | 34510 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0029319: Performance Problems on the process of Validating a Costing Rule |
Description | Performance Problems on the process of Validating a Costing Rule. The query of the checkTransactionsWithMovDateInClosedPeriod function of the CostingRuleProcessOnProcessHandler class takes too much time |
Steps To Reproduce | In an environment with lots of transaction without cost calculated (116405 in our example)
As group admin role:
Validate a new Costing Rule
Check it takes too much time (35 minutes in our example) |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2015-03-17 16:25 | ngarcia | New Issue | |
2015-03-17 16:25 | ngarcia | Assigned To | => umartirena |
2015-03-17 16:25 | ngarcia | OBNetwork customer | => Yes |
2015-03-17 16:25 | ngarcia | Modules | => Core |
2015-03-17 16:25 | ngarcia | Support ticket | => 34510 |
2015-03-17 16:25 | ngarcia | Resolution time | => 1428703200 |
2015-03-17 16:25 | ngarcia | Triggers an Emergency Pack | => No |
2015-03-17 16:26 | ngarcia | Issue Monitored: networkb | |
2015-03-17 16:39 | heccam | Issue Monitored: heccam | |
2015-05-04 09:20 | aferraz | Assigned To | umartirena => aferraz |
2015-05-04 13:48 | aferraz | Status | new => scheduled |
2015-05-05 13:23 | aferraz | Note Added: 0077008 | |
2015-05-12 11:08 | hgbot | Checkin | |
2015-05-12 11:08 | hgbot | Note Added: 0077329 | |
2015-05-12 11:08 | hgbot | Status | scheduled => resolved |
2015-05-12 11:08 | hgbot | Resolution | open => fixed |
2015-05-12 11:08 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/cd9a5d049ffbfaa5236d30b9537d7df2ee9f8223 [^] |
2015-05-12 11:08 | hgbot | Checkin | |
2015-05-12 11:08 | hgbot | Note Added: 0077330 | |
2015-05-12 11:10 | aferraz | Review Assigned To | => eduardo_Argal |
2015-05-12 11:10 | aferraz | Note Added: 0077331 | |
2015-05-12 11:10 | aferraz | Status | resolved => closed |
2015-05-12 11:10 | aferraz | Fixed in Version | => 3.0PR15Q3 |
2015-05-12 17:40 | hudsonbot | Checkin | |
2015-05-12 17:40 | hudsonbot | Note Added: 0077350 | |
2015-05-12 17:40 | hudsonbot | Checkin | |
2015-05-12 17:40 | hudsonbot | Note Added: 0077351 | |
Notes |
|
|
Test plan:
In an environment with lots of transaction without cost calculated (116405 in our example)
As group admin role:
Validate a new Costing Rule
Check it does not take too much time (less than 2 seconds) |
|
|
(0077329)
|
hgbot
|
2015-05-12 11:08
|
|
Repository: erp/devel/pi
Changeset: cd9a5d049ffbfaa5236d30b9537d7df2ee9f8223
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue May 05 13:26:14 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/cd9a5d049ffbfaa5236d30b9537d7df2ee9f8223 [^]
Fixes issue 29319: Performance problems validating a Costing Rule
Query in checkTransactionsWithMovDateInClosedPeriod method of CostingRuleProcessOnProcessHandler class, which has performance problems, has been changed.
Now M_Transaction.movementdate are truncated and grouped in order to have only one record per day instead of one record per transaction, which enhance a lot the performance of the query.
The query has been created in XSQL, because subquerys in FROM statement in HQL are not supported.
---
M src/org/openbravo/costing/CostingRuleProcessOnProcessHandler.java
M src/org/openbravo/costing/CostingUtils_data.xsql
---
|
|
|
(0077330)
|
hgbot
|
2015-05-12 11:08
|
|
Repository: erp/devel/pi
Changeset: e8b37e1f86397afcd9322e313afe4c07fda7afb9
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Mon May 11 19:21:58 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e8b37e1f86397afcd9322e313afe4c07fda7afb9 [^]
Related to issue 29319: Performance Problems on the process of Validating a Costing Rule
Some code refactoring after code review
---
M src/org/openbravo/costing/CostingRuleProcessOnProcessHandler.java
M src/org/openbravo/costing/CostingUtils_data.xsql
---
|
|
|
|
Code review + Testing done by eduardo-Argal OK |
|
|
|
|
|
|
|