Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030664Openbravo ERPI. Performancepublic2015-08-25 12:322015-09-18 05:08
VictorVillar 
dmiguelez 
urgentmajoralways
closedfixed 
5
pi 
 
vmromanos
Core
No
0030664: The Costing Background process takes around 10 days for high volume of warehouse transactions
The Costing Background process takes around 10 days for high volume of warehouse transactions (3000000 transactions pending to be calculated)
The Costing Background process takes around 10 days for high volume of warehouse transactions (3000000 transactions pending to be calculated)

It has been tested in the last Confirmed Stable version (PR15Q2.3).

After creating the trxprocessdate index the following query [1] takes around 25 seconds.

[1] (CostingBackground.java) trxs = getTransactionsBatch(orgsWithRule);

After changing to 100 the number of registers to calculate (instead of 1000), the commit takes around 6 seconds, with 1000 takes 45 minutes.
No tags attached.
Issue History
2015-08-25 12:32VictorVillarNew Issue
2015-08-25 12:32VictorVillarAssigned To => Triage Finance
2015-08-25 12:32VictorVillarModules => Core
2015-08-25 12:32VictorVillarResolution time => 1442268000
2015-08-25 12:32VictorVillarTriggers an Emergency Pack => No
2015-08-25 12:33VictorVillarNote Added: 0079690
2015-08-26 10:18dmiguelezAssigned ToTriage Finance => dmiguelez
2015-09-02 16:57dmiguelezStatusnew => scheduled
2015-09-09 13:12dmiguelezNote Added: 0080276
2015-09-09 13:12dmiguelezStatusscheduled => acknowledged
2015-09-16 12:55dmiguelezNote Added: 0080430
2015-09-17 12:15vmromanosStatusacknowledged => scheduled
2015-09-17 12:19hgbotCheckin
2015-09-17 12:19hgbotNote Added: 0080455
2015-09-17 12:19hgbotStatusscheduled => resolved
2015-09-17 12:19hgbotResolutionopen => fixed
2015-09-17 12:19hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/aebb993f5606275d345c8105f969cebb6becd95f [^]
2015-09-17 12:19vmromanosReview Assigned To => vmromanos
2015-09-17 12:19vmromanosNote Added: 0080456
2015-09-17 12:19vmromanosStatusresolved => closed
2015-09-18 05:08hudsonbotCheckin
2015-09-18 05:08hudsonbotNote Added: 0080476

Notes
(0079690)
VictorVillar   
2015-08-25 12:33   
If you would like to use the client's environment to check it, ask Support (VĂ­ctor Villar)
(0080276)
dmiguelez   
2015-09-09 13:12   
The fix is done, we are waiting for feedback from the Client's side
(0080430)
dmiguelez   
2015-09-16 12:55   
Already Tested with Client's data.
Development has gone through usual Costing Tests successfully too.
(0080455)
hgbot   
2015-09-17 12:19   
Repository: erp/devel/pi
Changeset: aebb993f5606275d345c8105f969cebb6becd95f
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Mon Sep 14 18:12:37 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/aebb993f5606275d345c8105f969cebb6becd95f [^]

Fixes Issue 30664. Improves performance in Costing Background Process
and also implements Killable interface in order to be able to stop the
Process.
Performance is improved by removing an unnecessary flush, launching
general Query for 10.000 records instead of 1.000 and also doing
a commit in each Transaction. Therefore the method to calculate
Transactions when there is an exception is no longer needed.

---
M src-db/database/sourcedata/AD_PROCESS.xml
M src/org/openbravo/costing/CostingBackground.java
M src/org/openbravo/costing/CostingServer.java
---
(0080456)
vmromanos   
2015-09-17 12:19   
Code review OK
(0080476)
hudsonbot   
2015-09-18 05:08   
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/68dbc59de475 [^]
Maturity status: Test