Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0024919
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 09. Financial managementmajorhave not tried2013-10-09 19:382013-10-16 19:46
ReportershuehnerView Statuspublic 
Assigned Toshuehner 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision1da36fb5ddbe
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Todmiguelez
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0024919: AccountingServer.checkDocuments is too slow and repeats same work multiple times

DescriptionThe BackgroundAccountingProcess is running checkDocumentsDates method for each client to find out if there are any documents in open periods to be posted.

That check is done for each docbasetype in a client. However docbasetype are defined on organization level. In practice (i.e. F&B) that means the same docbasetype code exists several times in a client so the check is unnecessarily repeated multiple times.
Steps To Reproducefresh install.source of pi on oracle (as there the queries involved are slower)
Instrument the selectDocumentsDates xsql method (or AcctServerData class) with info about docbasetype and notice that it gets called multiple times for the same docbasetype.
Proposed SolutionAdd distinct to selectDocTypes method to only report every docbasetype once.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0024920 closededuardo_Argal AcctServer.checkDocumentDates is very slow and is missing fix from issue 23420 

-  Notes
(0061641)
hgbot (developer)
2013-10-09 19:46

Repository: erp/devel/pi
Changeset: 1da36fb5ddbe739d316cd1a65088f3b4604dd265
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Wed Oct 09 19:43:59 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/1da36fb5ddbe739d316cd1a65088f3b4604dd265 [^]

Fixed 24919: Speedup AcctServer.checkDocuments
Avoid checking same docbasetype several times by only doing
check for distinct docbasetype values thus skipping duplicates
which happen as docbasetypes are defined per organization.

---
M src/org/openbravo/erpCommon/ad_forms/AcctServer_data.xsql
---
(0061642)
hgbot (developer)
2013-10-09 19:46

Repository: erp/devel/pi
Changeset: e721f9bcbfc12aba39c46e660d0efc03bf31c8b3
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Wed Oct 09 19:45:30 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e721f9bcbfc12aba39c46e660d0efc03bf31c8b3 [^]

Issue 24919: Small code-cleanup
Delete unused (non-public) selectDocuments methods in xsql file to make
it obvious that the method is not used.

---
M src/org/openbravo/erpCommon/ad_forms/AcctServer_data.xsql
---
(0061646)
dmiguelez (developer)
2013-10-10 10:22

Code Review + Testing Ok
(0061741)
hudsonbot (developer)
2013-10-16 19:46

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/51315988909a [^]

Maturity status: Test
(0061742)
hudsonbot (developer)
2013-10-16 19:46

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/51315988909a [^]

Maturity status: Test

- Issue History
Date Modified Username Field Change
2013-10-09 19:38 shuehner New Issue
2013-10-09 19:38 shuehner Assigned To => shuehner
2013-10-09 19:38 shuehner Modules => Core
2013-10-09 19:38 shuehner Triggers an Emergency Pack => No
2013-10-09 19:46 hgbot Checkin
2013-10-09 19:46 hgbot Note Added: 0061641
2013-10-09 19:46 hgbot Status new => resolved
2013-10-09 19:46 hgbot Resolution open => fixed
2013-10-09 19:46 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/1da36fb5ddbe739d316cd1a65088f3b4604dd265 [^]
2013-10-09 19:46 hgbot Checkin
2013-10-09 19:46 hgbot Note Added: 0061642
2013-10-09 19:47 shuehner Review Assigned To => dmiguelez
2013-10-09 19:58 shuehner Relationship added related to 0024920
2013-10-10 10:22 dmiguelez Note Added: 0061646
2013-10-10 10:22 dmiguelez Status resolved => closed
2013-10-16 19:46 hudsonbot Checkin
2013-10-16 19:46 hudsonbot Note Added: 0061741
2013-10-16 19:46 hudsonbot Checkin
2013-10-16 19:46 hudsonbot Note Added: 0061742


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker