Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0015064 | Openbravo ERP | 02. Master data management | public | 2010-10-28 12:38 | 2011-05-24 10:57 |
|
Reporter | jonalegriaesarte | |
Assigned To | adrianromero | |
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | 2.50MP22 | |
Target Version | 2.50MP25 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0015064: Performance problem in role window when there are many warehouses defined |
Description | We have an application with more that 200 warehouses defined. When the user tries to open the role window (the first link in the menu), the window takes a lot of time. |
Steps To Reproduce | - Create some warehouses (we have more that 200).
- Access to role information (first link in the menu)
- Notice that it takes a lot of time.
Note that the action save in this window takes a lot of time, too. |
Proposed Solution | |
Additional Information | |
Tags | closingMay2011 |
Relationships | related to | defect | 0014048 | 3.0RC6 | closed | marvintm | Warehouse combo box in the "user pop-up" window must depend on the organization | depends on | defect | 0015193 | 3.0RC4 | closed | marvintm | Performance problem in role window when there are many warehouses defined |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2010-10-28 12:38 | jonalegriaesarte | New Issue | |
2010-10-28 12:38 | jonalegriaesarte | Assigned To | => adrianromero |
2010-10-28 12:38 | jonalegriaesarte | Issue Monitored: networkb | |
2010-10-28 12:42 | jonalegriaesarte | version | => 2.50MP22 |
2010-10-28 18:52 | adrianromero | Note Added: 0032322 | |
2010-11-05 09:02 | shuehner | Issue Monitored: shuehner | |
2010-11-15 18:01 | adrianromero | Issue cloned | 0015193 |
2010-11-15 18:01 | adrianromero | Relationship added | depends on 0015193 |
2010-11-15 18:01 | hgbot | Checkin | |
2010-11-15 18:01 | hgbot | Note Added: 0032618 | |
2010-11-15 18:01 | hgbot | Status | new => resolved |
2010-11-15 18:01 | hgbot | Resolution | open => fixed |
2010-11-15 18:01 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/1b773d75b4848538fca07665a40333b136c10fc6 [^] |
2010-11-15 18:03 | adrianromero | Note Added: 0032620 | |
2010-11-15 22:26 | hudsonbot | Checkin | |
2010-11-15 22:26 | hudsonbot | Note Added: 0032626 | |
2010-11-16 19:01 | hgbot | Checkin | |
2010-11-16 19:01 | hgbot | Note Added: 0032643 | |
2010-11-16 19:02 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/1b773d75b4848538fca07665a40333b136c10fc6 [^] => http://code.openbravo.com/erp/devel/pi/rev/7962725ee825d4e4d3416f07d178cf8336a74497 [^] |
2010-11-17 04:28 | hudsonbot | Checkin | |
2010-11-17 04:28 | hudsonbot | Note Added: 0032651 | |
2010-11-18 13:13 | psarobe | Relationship added | related to 0014048 |
2010-11-22 13:09 | hgbot | Checkin | |
2010-11-22 13:09 | hgbot | Note Added: 0032781 | |
2010-11-22 13:09 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/7962725ee825d4e4d3416f07d178cf8336a74497 [^] => http://code.openbravo.com/erp/devel/pi/rev/19271f33c4b55c7e3db3e0721b8b756a08c219f2 [^] |
2010-11-30 17:51 | hudsonbot | Checkin | |
2010-11-30 17:51 | hudsonbot | Note Added: 0032933 | |
2011-05-24 10:02 | dalsasua | Tag Attached: closingMay2011 | |
2011-05-24 10:57 | dalsasua | Status | resolved => closed |
Notes |
|
|
The performance problem described is located in the SQL sentence executed in src/org/openbravo/erpCommon/ad_formsWarehouse_data.xsql because it gets the full list of warehouses by client and by role. For example, if the logged user has 10 roles and 10 clients and 200 warehouses it gets 10x10x200 = 20000 records !!!!
This window has to be refactored to load the warehouse list when client and role is selected and not to load everything when opening the window. |
|
|
(0032618)
|
hgbot
|
2010-11-15 18:01
|
|
Repository: erp/devel/pi
Changeset: 1b773d75b4848538fca07665a40333b136c10fc6
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Mon Nov 15 17:59:06 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/1b773d75b4848538fca07665a40333b136c10fc6 [^]
Fixes issue 0015064: Performance problem in role window when there are many warehouses defined
It has beem modified the way warehouse selector is loaded to load only the needed elements every time the client and the role changes instead of loading all posible combinations at loading time
---
M src/org/openbravo/erpCommon/ad_forms/Role.html
M src/org/openbravo/erpCommon/ad_forms/Role.java
M src/org/openbravo/erpCommon/ad_forms/Role.xml
M src/org/openbravo/erpCommon/ad_forms/Warehouse_data.xsql
---
|
|
|
|
* Testing the issue
Load 200 warehouses and follow the steps to reproduce. Now, the load time of warehouses in the selector is quick.
* Other areas affected
Only the role window is affected. |
|
|
|
|
|
(0032643)
|
hgbot
|
2010-11-16 19:01
|
|
Repository: erp/devel/pi
Changeset: 7962725ee825d4e4d3416f07d178cf8336a74497
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Tue Nov 16 18:58:38 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/7962725ee825d4e4d3416f07d178cf8336a74497 [^]
Fixes issue 0015064: Performance problem in role window when there are many warehouses defined
It has been modified the way of generating the JSON object to use the included JSON library
---
M src/org/openbravo/erpCommon/ad_forms/Role.java
---
|
|
|
|
|
|
(0032781)
|
hgbot
|
2010-11-22 13:09
|
|
Repository: erp/devel/pi
Changeset: 19271f33c4b55c7e3db3e0721b8b756a08c219f2
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Mon Nov 22 13:06:33 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/19271f33c4b55c7e3db3e0721b8b756a08c219f2 [^]
Fixes issue 0015064: Performance problem in role window when there are many warehouses defined
Small refactory in DAL query and code reformat
---
M src/org/openbravo/base/secureApp/LoginUtils.java
---
|
|
|
|
|