Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025387Openbravo ERPA. Platformpublic2013-12-20 12:392015-11-13 08:35
alostale 
alostale 
immediatemajorhave not tried
closedfixed 
5
 
3.0MP313.0MP31 
AugustoMauch
Core
Production - Confirmed Stable
2013-09-19
https://code.openbravo.com/erp/devel/pi/rev/06606d1fa59dc0e973c2033683e7e041672227f7 [^]
No
0025387: unneeded flushes in view generation
Unnecessary DAL flushes in view js generation makes it slow, specially for ones with many tabs.

This affects time taken in opening a window first time on each browser.
Open Sales Order window and see how long it takes to generate the view
Remove unneeded flushes
Performance
related to design defect 0024705 closed dbaz Openbravo ERP The windows takes long to be loaed when there are a lot of tabs and a lot of columns on the grid. 
related to defect 00246383.0MP28 closed shankarb Openbravo ERP An error appears when using a field in the tab display logic which is present in the header and also in the tab 
related to defect 00249513.0MP29 closed AugustoMauch Openbravo ERP Small problem with tab display logic and datasources 
related to defect 0028477 closed alostale Openbravo ERP view generation: unneeded queries to trl tables 
related to defect 0025939 closed jonalegriaesarte Modules Unneeded flushes in book lines generation are causing bad performance 
related to feature request 0025941 new AugustoMauch Openbravo ERP Check if the new connections created could be opened without autoflush 
Issue History
2013-12-20 12:39alostaleNew Issue
2013-12-20 12:39alostaleAssigned To => alostale
2013-12-20 12:39alostaleModules => Core
2013-12-20 12:39alostaleTriggers an Emergency Pack => No
2013-12-20 12:39alostaleRelationship addedrelated to 0024705
2013-12-20 12:39alostaleTag Attached: Performance
2013-12-20 12:42alostaleRelationship addedrelated to 0024638
2013-12-20 12:42alostaleRelationship addedrelated to 0024951
2013-12-20 12:43alostaleNote Added: 0062968
2013-12-20 12:53alostaleNote Added: 0062969
2013-12-20 12:55alostaleRegression level => Production - Confirmed Stable
2013-12-20 12:55alostalePrioritynormal => immediate
2013-12-20 12:56alostaleRegression date => 2013-09-19
2013-12-20 12:56alostaleRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/06606d1fa59dc0e973c2033683e7e041672227f7 [^]
2013-12-20 12:57alostaleNote Edited: 0062968bug_revision_view_page.php?bugnote_id=0062968#r5271
2013-12-20 12:58alostaleNote Edited: 0062969bug_revision_view_page.php?bugnote_id=0062969#r5273
2013-12-20 13:02alostaleReview Assigned To => AugustoMauch
2013-12-20 13:02hgbotCheckin
2013-12-20 13:02hgbotNote Added: 0062971
2013-12-20 13:02hgbotCheckin
2013-12-20 13:02hgbotNote Added: 0062972
2013-12-20 13:02hgbotStatusnew => resolved
2013-12-20 13:02hgbotResolutionopen => fixed
2013-12-20 13:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ec5f0f762fb19fb6ce0f6b6e19a78ca8a75b5d35 [^]
2013-12-20 15:58AugustoMauchNote Added: 0063030
2013-12-20 15:58AugustoMauchStatusresolved => closed
2013-12-20 15:58AugustoMauchFixed in Version => 3.0MP31
2013-12-21 01:39hudsonbotCheckin
2013-12-21 01:39hudsonbotNote Added: 0063039
2013-12-21 01:39hudsonbotCheckin
2013-12-21 01:39hudsonbotNote Added: 0063040
2014-03-10 16:03caristuRelationship addedrelated to 0025939
2014-03-10 17:07egoitzRelationship addedrelated to 0025941
2015-11-13 08:35alostaleRelationship addedrelated to 0028477

Notes
(0062968)
alostale   
2013-12-20 12:43   
(edited on: 2013-12-20 12:57)
Problem introduced in fixes for 0024638 and 0024951

Starting from mp28

(0062969)
alostale   
2013-12-20 12:53   
(edited on: 2013-12-20 12:58)
Executed test cases:


Executed openAllViews.jmx and openBiggestViews.jmx JMeter test cases in https://bitbucket.org/alostale/ob-jmeter [^]

-test the output for openAllViews is the same after and before the fix (there are some changes in field position which seems not to be stable)
-verified no additional flushes are invoked during view generation

Performance improvements (more details can be found here https://docs.google.com/a/openbravo.com/spreadsheet/ccc?key=0AmPGxKaZaJn-dDlERFlsRG5saHBQX2JmdnNkeEN4d2c#gid=0 [^]):

*Avg time to generate view (generating all): 923ms -> 540ms (takes 41% less)
*Avg time to generate view (generating the 20 with biggest number of tabs): 4708ms -> 2055ms (takes 56% less)
*Max time to generate a single view: 14741ms -> 4852ms (takes 67% less)

(0062971)
hgbot   
2013-12-20 13:02   
Repository: erp/devel/pi
Changeset: b017f9af7a2e0054eecdb910eed3abad330d92a3
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Dec 20 13:00:34 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/b017f9af7a2e0054eecdb910eed3abad330d92a3 [^]

related to issue 25387: reformat

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelUtils.java
---
(0062972)
hgbot   
2013-12-20 13:02   
Repository: erp/devel/pi
Changeset: ec5f0f762fb19fb6ce0f6b6e19a78ca8a75b5d35
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Dec 20 13:01:30 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/ec5f0f762fb19fb6ce0f6b6e19a78ca8a75b5d35 [^]

fixed bug 25387: unneeded flushes in view generation

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelUtils.java
---
(0063030)
AugustoMauch   
2013-12-20 15:58   
Code reviewed and verified in pi@ec5f0f762fb1
(0063039)
hudsonbot   
2013-12-21 01:39   
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/998ed2598cb6 [^]

Maturity status: Test
(0063040)
hudsonbot   
2013-12-21 01:39   
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/998ed2598cb6 [^]

Maturity status: Test