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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0025673
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 09. Financial managementmajoralways2014-02-06 01:422014-05-07 18:10
ReporteregoitzView Statuspublic 
Assigned ToAtulOpenbravo 
PrioritynormalResolutionfixedFixed in Version3.0PR14Q3
StatusclosedFix in branchFixed in SCM revision9e49204adcd4
ProjectionnoneETAnoneTarget Version3.0PR14Q3
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version3.0MP31SCM revision 
Review Assigned Toegoitz
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0025673: Posting a gl journal takes long when the journal is a opening journal with thousands of lines

DescriptionPosting 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)
Steps To Reproduce-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)
TagsPerformance
Attached Filesdiff file icon bug25673.option2.diff [^] (1,106 bytes) 2014-02-06 01:45 [Show Content]
diff file icon bug25673.option1_complete.diff [^] (2,475 bytes) 2014-03-06 17:47 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0064938)
jonalegriaesarte (reporter)
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 (developer)
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 (developer)
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 (developer)
2014-04-01 16:07

verified
(0066869)
hudsonbot (developer)
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

- Issue History
Date Modified Username Field Change
2014-02-06 01:42 egoitz New Issue
2014-02-06 01:42 egoitz Assigned To => dmiguelez
2014-02-06 01:42 egoitz Modules => Core
2014-02-06 01:42 egoitz Resolution time => 1392591600
2014-02-06 01:42 egoitz Triggers an Emergency Pack => No
2014-02-06 01:44 egoitz File Added: bug25673.option1.diff
2014-02-06 01:45 egoitz File Added: bug25673.option2.diff
2014-02-06 01:45 egoitz Tag Attached: Performance
2014-02-06 01:45 egoitz Assigned To dmiguelez => jonalegriaesarte
2014-02-19 12:53 jonalegriaesarte Assigned To jonalegriaesarte => pramakrishnan
2014-03-06 17:47 jonalegriaesarte File Added: bug25673.option1_complete.diff
2014-03-06 17:47 jonalegriaesarte Note Added: 0064938
2014-03-12 10:22 jonalegriaesarte Resolution time 1392591600 => 1395010800
2014-03-17 11:52 AtulOpenbravo Assigned To pramakrishnan => AtulOpenbravo
2014-03-17 11:52 AtulOpenbravo Status new => scheduled
2014-03-17 11:52 AtulOpenbravo fix_in_branch => pi
2014-03-17 11:53 egoitz File Deleted: bug25673.option1.diff
2014-03-17 17:03 AtulOpenbravo Note Added: 0065234
2014-03-31 16:17 jonalegriaesarte Target Version PR14Q2 => PR14Q3
2014-04-01 15:15 AtulOpenbravo Review Assigned To => egoitz
2014-04-01 15:15 AtulOpenbravo fix_in_branch pi =>
2014-04-01 15:16 hgbot Checkin
2014-04-01 15:16 hgbot Note Added: 0065670
2014-04-01 15:17 hgbot Status scheduled => resolved
2014-04-01 15:17 hgbot Resolution open => fixed
2014-04-01 15:17 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9e49204adcd47b45e38bf74ffc50ddfcf8702acb [^]
2014-04-01 16:07 egoitz Note Added: 0065671
2014-04-01 16:07 egoitz Status resolved => closed
2014-04-01 16:07 egoitz Fixed in Version => PR14Q3
2014-05-07 18:10 hudsonbot Checkin
2014-05-07 18:10 hudsonbot Note Added: 0066869


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker