Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0024919 | Openbravo ERP | 09. Financial management | public | 2013-10-09 19:38 | 2013-10-16 19:46 |
|
Reporter | shuehner | |
Assigned To | shuehner | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | dmiguelez |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0024919: AccountingServer.checkDocuments is too slow and repeats same work multiple times |
Description | The 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 Reproduce | fresh 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 Solution | Add distinct to selectDocTypes method to only report every docbasetype once.
|
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0024920 | | closed | eduardo_Argal | AcctServer.checkDocumentDates is very slow and is missing fix from issue 23420 |
|
Attached Files | |
|
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 | OBNetwork customer | => No |
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 | |
Notes |
|
(0061641)
|
hgbot
|
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
|
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
---
|
|
|
|
|
|
|
|
|
|
|