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
---
|
|
|
|
|