Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0024920 | Openbravo ERP | 09. Financial management | public | 2013-10-09 19:58 | 2013-11-28 19:57 | ||||||||||||||
Reporter | shuehner | ||||||||||||||||||
Assigned To | eduardo_Argal | ||||||||||||||||||
Priority | urgent | 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 | eduardo_Argal | ||||||||||||||||||
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 | 0024920: AcctServer.checkDocumentDates is very slow and is missing fix from issue 23420 | ||||||||||||||||||
Description | In the old issue 23420 a fix was implemented to speed up the checkDocuments method. However another change done shortly before made that method completely unused and replaced it by a checkDocumentsDates method. So the fix for 23420 is not working at all in the product. However the same conceptional fix can be applied instead to the checkDocumentDates method. Note: the unsued checkDocuments method has now been deleted in the 24919 issue to avoid that confusion again. | ||||||||||||||||||
Steps To Reproduce | run install.source on oracle on pi start tomcat Notice that accounting server takes 3-5 minutes of runtime. When instrumenting the code notice that the checkDocumentDates methods is called several times and every invocation for the table 319 (invoice) is very slow (i.e. 25seconds). | ||||||||||||||||||
Proposed Solution | Apply conception fix from issue 23420 to the new checkDocumentDates methods. Checking caller of that method shows that the only important result of that check is if there is any unposted document in a open period. The concrete id of such a document is only used in a debug level log statement. In later processing using debug level the accounting server does already report all id's it is processing. So that debug level statement here does not add a lot of value. So query can be changed to only report existence of such a document without requiring the min(id) scanning of the table. See attached patch for an idea. That version of the query does give very good runtime on oracle/pi. Preliminary testing also shows it to be better then the pi version on 2 other bigger customer dbs on postgres (ask etxarri to for details). | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | Performance | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | |||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2013-10-09 19:58 | shuehner | New Issue | |||||||||||||||||
2013-10-09 19:58 | shuehner | Assigned To | => eduardo_Argal | ||||||||||||||||
2013-10-09 19:58 | shuehner | Modules | => Core | ||||||||||||||||
2013-10-09 19:58 | shuehner | OBNetwork customer | => No | ||||||||||||||||
2013-10-09 19:58 | shuehner | Triggers an Emergency Pack | => No | ||||||||||||||||
2013-10-09 19:58 | shuehner | Relationship added | related to 0023420 | ||||||||||||||||
2013-10-09 19:58 | shuehner | Relationship added | related to 0024919 | ||||||||||||||||
2013-10-09 20:00 | shuehner | Note Added: 0061644 | |||||||||||||||||
2013-11-27 11:15 | hgbot | Checkin | |||||||||||||||||
2013-11-27 11:15 | hgbot | Note Added: 0062398 | |||||||||||||||||
2013-11-27 11:15 | hgbot | Status | new => resolved | ||||||||||||||||
2013-11-27 11:15 | hgbot | Resolution | open => fixed | ||||||||||||||||
2013-11-27 11:15 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/225fca243c8171ffc42b5989308a3f0f83e5c47f [^] | ||||||||||||||||
2013-11-27 11:19 | alostale | Tag Attached: Performance | |||||||||||||||||
2013-11-27 11:40 | eduardo_Argal | Review Assigned To | => eduardo_Argal | ||||||||||||||||
2013-11-27 11:40 | eduardo_Argal | Note Added: 0062403 | |||||||||||||||||
2013-11-27 11:40 | eduardo_Argal | Status | resolved => closed | ||||||||||||||||
2013-11-28 19:57 | hudsonbot | Checkin | |||||||||||||||||
2013-11-28 19:57 | hudsonbot | Note Added: 0062463 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|