Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024191Openbravo ERPI. Performancepublic2013-06-26 11:062016-09-19 16:27
jecharri 
dmiguelez 
urgentminoralways
closedfixed 
5
 
3.0PR16Q4 
aferraz
Core
No
0024191: Accounting background process has bad performance
Accounting background process has bad performance

With huge quantity of documents to be posted the accounting process can take much time.

More than 24 hours
-
Moved from MP26 to MP27, Performance
depends on backport 00339663.0PR16Q3.2 closed dmiguelez Accounting background process has bad performance 
depends on backport 00339673.0PR16Q2.3 closed dmiguelez Accounting background process has bad performance 
related to feature request 0033650 closed AtulOpenbravo Add columns in AD_Org table to persist data in order to improve performance 
causes defect 0034018 closed markmm82 Posting a Purchase Invoice is not possible with "F&B EspaƱa, S.A. - Finanace - F&B International Group" role. NPE is thrown 
Issue History
2013-06-26 11:06jecharriNew Issue
2013-06-26 11:06jecharriAssigned To => AugustoMauch
2013-06-26 11:06jecharriModules => Core
2013-06-26 11:06jecharriResolution time => 1378418400
2013-06-26 11:06jecharriTriggers an Emergency Pack => No
2013-06-26 11:07jecharriTag Attached: Performance
2013-06-27 18:07AugustoMauchAssigned ToAugustoMauch => dmiguelez
2013-07-29 16:36jonalegriaesarteTarget Version3.0MP26 => 3.0MP27
2013-07-29 16:36jonalegriaesarteTag Attached: Moved from MP26 to MP27
2013-08-19 16:42jonalegriaesarteTarget Version3.0MP27 => 3.0MP28
2013-09-23 16:38jonalegriaesarteNote Added: 0061356
2013-09-23 16:38jonalegriaesarteTypedefect => design defect
2013-09-23 16:38jonalegriaesarteTarget Version3.0MP28 =>
2016-08-08 14:02dmiguelezRelationship addedrelated to 0033650
2016-09-13 12:52dmiguelezStatusnew => scheduled
2016-09-16 09:24hgbotCheckin
2016-09-16 09:24hgbotNote Added: 0090021
2016-09-16 09:24hgbotStatusscheduled => resolved
2016-09-16 09:24hgbotResolutionopen => fixed
2016-09-16 09:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/df9155c88ab2f89b0f79cf3bd183aa730600220c [^]
2016-09-16 09:24hgbotCheckin
2016-09-16 09:24hgbotNote Added: 0090022
2016-09-16 09:26aferrazReview Assigned To => aferraz
2016-09-16 09:26aferrazNote Added: 0090024
2016-09-16 09:26aferrazStatusresolved => closed
2016-09-16 09:26aferrazFixed in Version => 3.0PR16Q4
2016-09-19 16:00aferrazRelationship addedcauses 0034018
2016-09-19 16:27hudsonbotCheckin
2016-09-19 16:27hudsonbotNote Added: 0090069
2016-09-19 16:27hudsonbotCheckin
2016-09-19 16:27hudsonbotNote Added: 0090070

Notes
(0061356)
jonalegriaesarte   
2013-09-23 16:38   
We implemented several changes that made this process better regarding performance. Next step should be a refactor os some parts of the code. This review is going to be managed as a project. Moving it to Design Defect due to the complexity of the change
(0090021)
hgbot   
2016-09-16 09:24   
Repository: erp/devel/pi
Changeset: df9155c88ab2f89b0f79cf3bd183aa730600220c
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Thu Sep 08 16:36:16 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/df9155c88ab2f89b0f79cf3bd183aa730600220c [^]

Fixes Issue 24191. Improves performance for Accounting Background Process.

Adds Index in FIN_FINACC_TRANSACTION Table.
Modifies query in AcctServer_data to properly limit the results returned.
Modifies query in AcctServer_data to remove the order clause.
Persist information about Accounting Schemas in Java code so it is no longer
necessary to access the Database everytime to retrive that information.

---
M src-db/database/model/tables/FIN_FINACC_TRANSACTION.xml
M src/org/openbravo/dal/core/OBContext.java
M src/org/openbravo/erpCommon/ad_forms/AcctSchema.java
M src/org/openbravo/erpCommon/ad_forms/AcctServer.java
M src/org/openbravo/erpCommon/ad_forms/AcctServer_data.xsql
A src/org/openbravo/erpCommon/ad_forms/AcctSchemaStructureProvider.java
---
(0090022)
hgbot   
2016-09-16 09:24   
Repository: erp/devel/pi
Changeset: 682415bc0aa9a5022a7c7fbec1442a61a8bc3025
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue Sep 13 18:24:02 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/682415bc0aa9a5022a7c7fbec1442a61a8bc3025 [^]

Related to issue 24191: Code review improvements

- Move AcctSchemaStructureProvider.java to same folder as OrganizationStructureProvider.java.
- Rename acctSchemaSP variable to acctSchemaProvider in OBContext.java.
- Remove unused data variable in AcctSchema.java.
- Add commentary to explain why we send limit manually to xsql query in AcctServer.java.
- Do not send numberRegisters parameter to AcctServerData.select as we are already sending the limit.
- Undo changes in AcctServerData.periodOpen method and create new AcctServerData.selectPeriodOpen method to avoid a functional API change.

---
M src/org/openbravo/dal/core/OBContext.java
M src/org/openbravo/erpCommon/ad_forms/AcctSchema.java
M src/org/openbravo/erpCommon/ad_forms/AcctServer.java
M src/org/openbravo/erpCommon/ad_forms/AcctServer_data.xsql
A src/org/openbravo/dal/security/AcctSchemaStructureProvider.java
R src/org/openbravo/erpCommon/ad_forms/AcctSchemaStructureProvider.java
---
(0090024)
aferraz   
2016-09-16 09:26   
Code review + Testing OK
(0090069)
hudsonbot   
2016-09-19 16:27   
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/17da7ad0ad62 [^]
Maturity status: Test
(0090070)
hudsonbot   
2016-09-19 16:27   
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/17da7ad0ad62 [^]
Maturity status: Test