Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035157Openbravo ERP07. Sales managementpublic2017-02-03 12:512022-06-07 17:09
egoitz 
AtulOpenbravo 
immediatecriticalalways
closedfixed 
5
 
3.0PR17Q2 
markmm82
Core
No
0035157: The report general ledger journal colapse the system when the query gets thousands of rows

When executing the report for a period and schema where there are thousands of entries to show, the reports takes long and consume thousand of resources.

Execute the report on an environment with a big amount of data.

Or check the code to see that the scrollable is not implemented:

http://wiki.openbravo.com/wiki/SQLC#Scrollable_Queries_.28memory-efficient.29 [^]
Apply a solution similar than the one done in the following commit for the report general ledger:

https://code.openbravo.com/erp/devel/pi/rev/89155988f108 [^]
No tags attached.
related to defect 0049498 new Triage Omni OMS General Ledger Journal Report does not properly implement xsql-scrollable interface (and uses too much memory) 
related to design defect 0036070 acknowledged Triage Omni OMS Performance problems on the journal entries report. 
related to defect 0036738 closed AtulOpenbravo Performance problems in General Ledger Report when grouping it by Business Partner 
Issue History
2017-02-03 12:51egoitzNew Issue
2017-02-03 12:51egoitzAssigned To => Triage Finance
2017-02-03 12:51egoitzModules => Core
2017-02-03 12:51egoitzResolution time => 1486508400
2017-02-03 12:51egoitzTriggers an Emergency Pack => No
2017-02-03 16:13markmm82Assigned ToTriage Finance => AtulOpenbravo
2017-02-06 07:24AtulOpenbravoStatusnew => scheduled
2017-02-08 20:26AtulOpenbravoNote Added: 0094162
2017-02-10 19:18hgbotCheckin
2017-02-10 19:18hgbotNote Added: 0094222
2017-02-10 19:18hgbotStatusscheduled => resolved
2017-02-10 19:18hgbotResolutionopen => fixed
2017-02-10 19:18hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/05bc767bcda24e0eb1c05ce3d7d1ca82946b0eae [^]
2017-02-10 19:18hgbotCheckin
2017-02-10 19:18hgbotNote Added: 0094223
2017-02-10 19:21markmm82Review Assigned To => markmm82
2017-02-10 19:21markmm82Note Added: 0094224
2017-02-10 19:21markmm82Statusresolved => closed
2017-02-10 19:21markmm82Fixed in Version => 3.0PR17Q2
2017-03-15 20:19hudsonbotCheckin
2017-03-15 20:19hudsonbotNote Added: 0095177
2017-03-15 20:19hudsonbotCheckin
2017-03-15 20:19hudsonbotNote Added: 0095178
2017-05-29 16:39aferrazRelationship addedrelated to 0036070
2017-08-29 12:51ngarciaRelationship addedrelated to 0036738
2022-06-07 17:09shuehnerRelationship addedrelated to 0049498

Notes
(0094162)
AtulOpenbravo   
2017-02-08 20:26   
Test Plan in pi to make sure the report behaviour is same as earlier before this change

- Navigate to Journal Entries Report. Apply any filters.
  - Check Html view report. Check the Previous and Next button, Data shown in each page.
  - Export PDF report and check the data.
  - Export Xls report and check the data.

- Navigate to General Ledger Report. Apply any filters.
  - for any one of the record in the detail section click on the link shown on date.
  - Check that Journal Entries Report opens up with the necessary details.
  

- Navigate to any posted document for eg:- Sales Invoice.
  - Unpost the document.
  - Post the document again.
  - Check that Journal Entries Report opens with the necessary details.

Note:- Compare above steps with same filters applied before and after applying the patch for this issue.
(0094222)
hgbot   
2017-02-10 19:18   
Repository: erp/devel/pi
Changeset: 05bc767bcda24e0eb1c05ce3d7d1ca82946b0eae
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Thu Feb 09 00:40:22 2017 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/05bc767bcda24e0eb1c05ce3d7d1ca82946b0eae [^]

Fixes Issue 35157:The report general ledger journal colapse the system
when the query gets thousands of rows

Use scrollable queries in General Ledger Journal Report. Made use of
limit/offset or rownum as per the used DBMS to maintain the pagination in
the html report.

---
M src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournal.java
M src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournal_data.xsql
---
(0094223)
hgbot   
2017-02-10 19:18   
Repository: erp/devel/pi
Changeset: 180790d540d5294fabb48a34b175fb29a2f936f4
Author: Mark <markmm82 <at> gmail.com>
Date: Fri Feb 10 10:11:34 2017 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/180790d540d5294fabb48a34b175fb29a2f936f4 [^]

Related to issue 35157: Removed unused limit variable

The limit var was declared but it values doesn't changes in any other area of the
code. So the validation to display the message will never be fulfilled.

---
M src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournal.java
---
(0094224)
markmm82   
2017-02-10 19:21   
Code review + Testing OK
(0095177)
hudsonbot   
2017-03-15 20:19   
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/54e102bef53e [^]
Maturity status: Test
(0095178)
hudsonbot   
2017-03-15 20:19   
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/54e102bef53e [^]
Maturity status: Test