Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005126Openbravo ERP02. Master data managementpublic2008-09-19 18:422009-04-21 11:05
shuehner 
shuehner 
normalminorhave not tried
closedfixed 
5
pi 
 
Core
No
0005126: Product Selector does take a very long time to open with many products
The SQL used in the product selector is not efficient when having 0029055:0075000 products.
=> the product selector does not work with this amount of work as it runs in a timeout
performance2.40scrum, Sprint-1
depends on feature request 0005124 closed shuehner DataGrid.js supports sortable=yes/no for each column, but not our DataGridStructure template for defining a grid 
depends on backport 0005152 closed shuehner Product Selector does take a very long time to open with many products 
related to defect 0007898 closed shuehner Product selector takes several time to show about 4000 products 
Issue History
2008-09-19 18:42shuehnerNew Issue
2008-09-19 18:42shuehnerAssigned To => cromero
2008-09-19 18:42shuehnersf_bug_id0 => 2119573
2008-09-19 18:42shuehnerRegression testing => No
2008-09-19 18:42shuehnerAssigned Tocromero => shuehner
2008-09-19 18:46shuehnerTag Attached: performance2.40scrum
2008-09-19 18:51shuehnerNote Added: 0009105
2008-09-19 18:52shuehnerNote Added: 0009106
2008-09-19 18:53shuehnerRelationship addeddepends on 0005124
2008-09-22 12:55cromeroStatusnew => scheduled
2008-09-22 12:55cromerofix_in_branch => trunk
2008-09-23 11:55svnbotCheckin
2008-09-23 11:55svnbotNote Added: 0009150
2008-09-23 11:55svnbotStatusscheduled => resolved
2008-09-23 11:55svnbotResolutionopen => fixed
2008-09-23 11:55svnbotsvn_revision => 7709
2008-10-23 07:48iperdomoTag Attached: sprint1
2008-10-24 18:19iperdomoTag Detached: sprint1
2008-10-24 18:19iperdomoTag Attached: Sprint-1
2008-10-30 19:13svnbotCheckin
2008-10-30 19:13svnbotNote Added: 0009859
2008-10-30 19:13svnbotsvn_revision7709 => 9468
2009-03-02 16:42shuehnerRelationship addedrelated to 0007898
2009-04-21 11:05psarobeStatusresolved => closed

Notes
(0009105)
shuehner   
2008-09-19 18:51   
The SQL does the calculation for all columns for all products before limiting the result to the currently used range of products (size of the grid).
Fix by rewriting the SQL to first filter and limit the rows and then calculate all other columns.
(0009106)
shuehner   
2008-09-19 18:52   
The fix for this bug will disable sorting for all columns in the Product-selector besides (Search key and Name). This introduces a feature regression as it is not possible anymore to sort by the other columns! Readding the lost functionality is possible but needs further work later.
(0009150)
svnbot   
2008-09-23 11:55   
Repository: openbravo
Revision: 7709
Author: huehner
Date: 2008-09-23 11:55:08 +0200 (Tue, 23 Sep 2008)

Fixed 5126
Improved performance of the product selector with many products:
- speed up counting of record in filter by using extra sql query
- rewrite data retrieving sql to first filter and limit and then calculate the rest of the data
- disable sorting of all columns besides: key,name (feature regression)

---
U trunk/src/org/openbravo/erpCommon/info/Product.java
U trunk/src/org/openbravo/erpCommon/info/Product_data.xsql
---

https://dev.openbravo.com/websvn/openbravo/?rev=7709&sc=1 [^]
(0009859)
svnbot   
2008-10-30 19:13   
Repository: openbravo
Revision: 9468
Author: huehner
Date: 2008-10-30 19:13:14 +0100 (Thu, 30 Oct 2008)

Issue 5126
Fix error introduced in r9465 which did not show all relevant products in some cases.

---
U trunk/src/org/openbravo/erpCommon/info/Product.java
U trunk/src/org/openbravo/erpCommon/info/Product_data.xsql
---

https://dev.openbravo.com/websvn/openbravo/?rev=9468&sc=1 [^]