Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0049498Openbravo ERP09. Financial managementpublic2022-06-07 17:082022-06-07 17:08
shuehner 
Triage Omni OMS 
normalmajorhave not tried
newopen 
5
 
 
Core
No
0049498: General Ledger Journal Report does not properly implement xsql-scrollable interface (and uses too much memory)
Issue 35157 from 2017 converted this report to use the xsql scrollable interface which avoids loading all rows of the result into an Vector or java-array at once.

However the converted code is buggy and loads the scrollable output directly into Vector/java-array defeating the improvement:

Example here:
https://gitlab.com/openbravo/product/openbravo/-/blob/master/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournal.java#L955 [^]

When being worked all scrollable-xsql calls should be reviewed.
https://gitlab.com/openbravo/product/openbravo/-/blob/master/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournal.java#L955 [^]
Pass scrollable interface directly into renderJR as intended.
The size=0 check can be probably replaced by scrollable.hasData() call
No tags attached.
related to defect 0035157 closed AtulOpenbravo The report general ledger journal colapse the system when the query gets thousands of rows 
Issue History
2022-06-07 17:08shuehnerNew Issue
2022-06-07 17:08shuehnerAssigned To => Triage Omni OMS
2022-06-07 17:08shuehnerModules => Core
2022-06-07 17:08shuehnerTriggers an Emergency Pack => No
2022-06-07 17:09shuehnerRelationship addedrelated to 0035157

There are no notes attached to this issue.