Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009898Openbravo ERPA. Platformpublic2009-07-14 17:462009-07-22 13:30
shuehner 
shuehner 
normalmajorhave not tried
closedfixed 
5
pi 
2.40MP8 
No
Core
No
0009898: Business Partner selector is slow with many business partners
This selector is slow with many business partners in the db. (i.e. 50k-100k)
No tags attached.
blocks defect 0009897 closed shuehner Business Partner selector is slow with many business partners 
Issue History
2009-07-14 17:46shuehnerTypedefect => backport
2009-07-14 17:46shuehnerfix_in_branch => 2.40
2009-07-14 19:02shuehnerNote Added: 0018237
2009-07-17 15:23hgbotCheckin
2009-07-17 15:23hgbotNote Added: 0018373
2009-07-17 15:23hgbotStatusscheduled => resolved
2009-07-17 15:23hgbotResolutionopen => fixed
2009-07-17 15:23hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/dc7667494e12a225e97a58a6865e19a10af819a8 [^]
2009-07-22 13:30sureshbabuStatusresolved => closed
2009-07-22 13:30sureshbabuNote Added: 0018555
2009-07-22 13:30sureshbabuFixed in Version => 2.40MP8

Notes
(0018237)
shuehner   
2009-07-14 19:02   
Testing needed:

Testing for direct invocation:
Goto Sales Order
Create a new one
Enter a bp-searchkey into the bpartner field and press enter to open the selector. Three values to test (one leading to no records found, one leading to >1 records found (both should open selector and leave it open), one leading to exactly one record found (selector popup should open and close immediately and use the one record found

General testing:
testing of filtering/sorting of business partner selector
(0018373)
hgbot   
2009-07-17 15:23   
Repository: erp/stable/2.40
Changeset: dc7667494e12a225e97a58a6865e19a10af819a8
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Tue Jul 14 17:49:37 2009 +0200
URL: http://code.openbravo.com/erp/stable/2.40/rev/dc7667494e12a225e97a58a6865e19a10af819a8 [^]

Fixed 9898: Improve performance of business partner selector
- optimize with limit/rownum <= 2when called with command=KEY (input value and press enter on calling page) to not load all possible rows when input value of not selective
- optimized placement of limit/offset and rownum

---
M src/org/openbravo/erpCommon/info/BusinessPartner.java
M src/org/openbravo/erpCommon/info/BusinessPartner_data.xsql
---
(0018555)
sureshbabu   
2009-07-22 13:30   
Tested as per the comments given by the developer