Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025673Openbravo ERP09. Financial managementpublic2014-02-06 01:422014-05-07 18:10
egoitz 
AtulOpenbravo 
normalmajoralways
closedfixed 
5
3.0MP31 
3.0PR14Q33.0PR14Q3 
egoitz
Core
No
0025673: Posting a gl journal takes long when the journal is a opening journal with thousands of lines
Posting a gl journal takes long when the journal is a opening journal with thousands of lines (3000)
and also with thoused of lines on the fact_acct table (511718)
-Create a new gl_journal batch
-Create a gl journal header with opening=Y
-Add 3000 lines.
-Process
-Post
*It takes long to finish posting the process.


The problem is with the following update:
 if (m_docVO.m_IsOpening.equals("Y"))
   FactLineData.updateFactAcct(con, conn, m_AD_Table_ID, m_Record_ID);
It takes arround 1 second for each line when there are many lines on the fact_acct table (511718 rows)
Performance
diff bug25673.option2.diff (1,106) 2014-02-06 01:45
https://issues.openbravo.com/file_download.php?file_id=6690&type=bug
diff bug25673.option1_complete.diff (2,475) 2014-03-06 17:47
https://issues.openbravo.com/file_download.php?file_id=6735&type=bug
Issue History
2014-02-06 01:42egoitzNew Issue
2014-02-06 01:42egoitzAssigned To => dmiguelez
2014-02-06 01:42egoitzModules => Core
2014-02-06 01:42egoitzResolution time => 1392591600
2014-02-06 01:42egoitzTriggers an Emergency Pack => No
2014-02-06 01:44egoitzFile Added: bug25673.option1.diff
2014-02-06 01:45egoitzFile Added: bug25673.option2.diff
2014-02-06 01:45egoitzTag Attached: Performance
2014-02-06 01:45egoitzAssigned Todmiguelez => jonalegriaesarte
2014-02-19 12:53jonalegriaesarteAssigned Tojonalegriaesarte => pramakrishnan
2014-03-06 17:47jonalegriaesarteFile Added: bug25673.option1_complete.diff
2014-03-06 17:47jonalegriaesarteNote Added: 0064938
2014-03-12 10:22jonalegriaesarteResolution time1392591600 => 1395010800
2014-03-17 11:52AtulOpenbravoAssigned Topramakrishnan => AtulOpenbravo
2014-03-17 11:52AtulOpenbravoStatusnew => scheduled
2014-03-17 11:52AtulOpenbravofix_in_branch => pi
2014-03-17 11:53egoitzFile Deleted: bug25673.option1.diff
2014-03-17 17:03AtulOpenbravoNote Added: 0065234
2014-03-31 16:17jonalegriaesarteTarget VersionPR14Q2 => PR14Q3
2014-04-01 15:15AtulOpenbravoReview Assigned To => egoitz
2014-04-01 15:15AtulOpenbravofix_in_branchpi =>
2014-04-01 15:16hgbotCheckin
2014-04-01 15:16hgbotNote Added: 0065670
2014-04-01 15:17hgbotStatusscheduled => resolved
2014-04-01 15:17hgbotResolutionopen => fixed
2014-04-01 15:17hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9e49204adcd47b45e38bf74ffc50ddfcf8702acb [^]
2014-04-01 16:07egoitzNote Added: 0065671
2014-04-01 16:07egoitzStatusresolved => closed
2014-04-01 16:07egoitzFixed in Version => PR14Q3
2014-05-07 18:10hudsonbotCheckin
2014-05-07 18:10hudsonbotNote Added: 0066869

Notes
(0064938)
jonalegriaesarte   
2014-03-06 17:47   
Added new version of the first patch that completes the solution. option1 was wrong because is some cases, the factaccttype was null
(0065234)
AtulOpenbravo   
2014-03-17 17:03   
Test Plan
- Login as F&B International Group Admin.
- Create a new Journal Batch.
- Create a Journal Header by keeping Opening flag as checked.
- Create as many as multiple of thousands Journal Lines.
- Complete Journal Header and post it.
- Notice that document gets posted in less time as compare to steps to reproduce.
(0065670)
hgbot   
2014-04-01 15:16   
Repository: erp/devel/pi
Changeset: 9e49204adcd47b45e38bf74ffc50ddfcf8702acb
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Mon Mar 17 17:58:11 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/9e49204adcd47b45e38bf74ffc50ddfcf8702acb [^]

Fixes Issue 25673 Posting opening journal (thousand lines) takes long time

---
M src/org/openbravo/erpCommon/ad_forms/FactLine.java
M src/org/openbravo/erpCommon/ad_forms/FactLine_data.xsql
---
(0065671)
egoitz   
2014-04-01 16:07   
verified
(0066869)
hudsonbot   
2014-05-07 18:10   
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/02ca2648bcdc [^]
Maturity status: Test