Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0039171 | Openbravo ERP | 09. Financial management | public | 2018-08-22 14:59 | 2018-09-12 21:33 |
|
Reporter | malsasua | |
Assigned To | Sandrahuguet | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | markmm82 |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0039171: Reset Accounting: performance problem executing unpost functionality with big database |
Description | With a big database:
. # m_inventory > 60K
. # m_inventoryline > 2M
. # factact > 30M
it takes more than 5 minutes to unpost the table m_inventory, only for one day.
For several days, timeout happens |
Steps To Reproduce | Reset Accounting window
. select M_Inventory table
. date range one week
. delete existing accounting entries selected
Operation Timed out error is returned |
Proposed Solution | |
Additional Information | |
Tags | Performance |
Relationships | related to | defect | 0040208 | 3.0PR18Q3.3 | closed | AtulOpenbravo | Unpost process can be very slow |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2018-08-22 14:59 | malsasua | New Issue | |
2018-08-22 14:59 | malsasua | Assigned To | => Triage Finance |
2018-08-22 14:59 | malsasua | Modules | => Core |
2018-08-22 14:59 | malsasua | Resolution time | => 1536876000 |
2018-08-22 14:59 | malsasua | Triggers an Emergency Pack | => No |
2018-08-22 15:37 | malsasua | Description Updated | bug_revision_view_page.php?rev_id=17558#r17558 |
2018-08-22 15:38 | malsasua | Tag Attached: Performance | |
2018-08-23 08:48 | aferraz | Assigned To | Triage Finance => AtulOpenbravo |
2018-08-24 11:30 | ngarcia | Summary | Performance problem executing unpost functionality with big database => Reset Accounting: performance problem executing unpost functionality with big database |
2018-08-24 11:30 | ngarcia | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=17564#r17564 |
2018-08-24 11:31 | ngarcia | Issue Monitored: ngarcia | |
2018-08-27 17:19 | rafaroda | Issue Monitored: rafaroda | |
2018-08-28 10:30 | AtulOpenbravo | Status | new => scheduled |
2018-09-10 11:08 | Sandrahuguet | Note Added: 0106652 | |
2018-09-10 12:11 | Sandrahuguet | Assigned To | AtulOpenbravo => Sandrahuguet |
2018-09-11 11:16 | Sandrahuguet | Note Added: 0106681 | |
2018-09-11 11:16 | Sandrahuguet | Review Assigned To | => markmm82 |
2018-09-12 16:53 | hgbot | Checkin | |
2018-09-12 16:53 | hgbot | Note Added: 0106714 | |
2018-09-12 16:53 | hgbot | Status | scheduled => resolved |
2018-09-12 16:53 | hgbot | Resolution | open => fixed |
2018-09-12 16:53 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/6bac4a0d28462693b61fb6ba48955bfa61e53861 [^] |
2018-09-12 16:56 | Sandrahuguet | Note Added: 0106715 | |
2018-09-12 17:09 | markmm82 | Note Added: 0106718 | |
2018-09-12 17:10 | markmm82 | Status | resolved => closed |
2018-09-12 21:33 | hudsonbot | Checkin | |
2018-09-12 21:33 | hudsonbot | Note Added: 0106737 | |
2019-02-14 16:10 | joniturralde93 | Relationship added | related to 0040208 |
Notes |
|
|
With the proposed fix:
*Unpost the table m_inventory for the last two months takes 50s |
|
|
|
Reset Accounting window
. select M_Inventory table
. date range two months
. delete existing accounting entries selected
Takes 50s in client enviroment |
|
|
(0106714)
|
hgbot
|
2018-09-12 16:53
|
|
Repository: erp/devel/pi
Changeset: 6bac4a0d28462693b61fb6ba48955bfa61e53861
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Tue Sep 04 15:23:34 2018 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/6bac4a0d28462693b61fb6ba48955bfa61e53861 [^]
Fixes issue 39171 improve reset accounting process performance
Improve performance of getTables and getDocbasetypes queries
---
M src-db/database/model/tables/FACT_ACCT.xml
M src/org/openbravo/financial/ResetAccounting.java
---
|
|
|
|
Repository: erp/devel/pi
Changeset: 6bac4a0d28462693b61fb6ba48955bfa61e53861
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Tue Sep 04 15:23:34 2018 +0200
URL: https://code.openbravo.com/erp/devel/pi/rev/7671c9b22d7e [^]
Related to 39171: Use ad_periodcontrolallowed_org_id column instead of calling
ad_org_getperiodcontrolallow() function to improve performance.
The ad_org_getperiodcontrolallow column of each organization stores it period
control allowed organization. Using it is more efficient than invoke the ad_org_getperiodcontrolallow()
function as this one is recursive and implies extra queries that are unnecesaries
as the information is in the requested organizations.
---
M src/org/openbravo/financial/ResetAccounting.java
--- |
|
|
|
|
|
|
|