Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
| View Issue Details | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0037456 | Openbravo ERP | 01. General setup | public | 2017-11-13 10:09 | 2017-12-12 12:11 | |||||||
| Reporter | Sandrahuguet | |||||||||||
| Assigned To | AtulOpenbravo | |||||||||||
| Priority | normal | Severity | major | Reproducibility | have not tried | |||||||
| Status | closed | Resolution | fixed | |||||||||
| Platform | OS | 30 | OS Version | Openbravo Appliance 14.04 | ||||||||
| Product Version | ||||||||||||
| Target Version | 3.0PR17Q4 | Fixed in Version | 3.0PR17Q4 | |||||||||
| Merge Request Status | ||||||||||||
| Review Assigned To | vmromanos | |||||||||||
| OBNetwork customer | OBPS | |||||||||||
| Web browser | ||||||||||||
| Modules | Core | |||||||||||
| Support ticket | ||||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0037456: Change the role in the ERP has performance problems | |||||||||||
| Description | In an environment with many organizations, get General Ledger of context organizations part in LoginUtils.java (specifically, the loop by organization and selectAcctSchema inside) is very slow (takes around 17s). slow part: // Get General Ledger of context organizations if (ArrayUtils.isEmpty(attr)) { String[] orgList = Utility.getContext(conn, vars, "#User_Org", "LoginHandler") .replace("'", "").split(","); for (String orgId : orgList) { if (!StringUtils.equals(orgId, strOrg)) { acctSchemaId = OBLedgerUtils.getOrgLedger(orgId); if (StringUtils.isNotEmpty(acctSchemaId)) { attr = AttributeData.selectAcctSchema(conn, acctSchemaId, Utility.getContext(conn, vars, "#User_Client", "LoginHandler")); if (ArrayUtils.isNotEmpty(attr)) { break; } } } } } | |||||||||||
| Steps To Reproduce | Login in the ERP Open developer tools Change the role to a role with access to many organizations Notice that UserInfoWidgetActionHandler request takes around 18s | |||||||||||
| Proposed Solution | ||||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Relationships |
| |||||||||||
| Attached Files | ||||||||||||
| Issue History | ||||||||||||
| Date Modified | Username | Field | Change | |||||||||
| 2017-12-12 10:17 | AtulOpenbravo | Type | defect => backport | |||||||||
| 2017-12-12 10:17 | AtulOpenbravo | Target Version | => 3.0PR17Q4 | |||||||||
| 2017-12-12 10:20 | AtulOpenbravo | Note Added: 0100975 | ||||||||||
| 2017-12-12 12:09 | hgbot | Checkin | ||||||||||
| 2017-12-12 12:09 | hgbot | Note Added: 0100980 | ||||||||||
| 2017-12-12 12:09 | hgbot | Status | scheduled => resolved | |||||||||
| 2017-12-12 12:09 | hgbot | Resolution | open => fixed | |||||||||
| 2017-12-12 12:09 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR17Q4/rev/272695c75c880b0a9bdc11c83f78a04b1bb16d35 [^] | |||||||||
| 2017-12-12 12:11 | vmromanos | Review Assigned To | => vmromanos | |||||||||
| 2017-12-12 12:11 | vmromanos | Status | resolved => closed | |||||||||
| 2017-12-12 12:11 | vmromanos | Fixed in Version | => 3.0PR17Q4 | |||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||