Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0037358 | Openbravo ERP | A. Platform | public | 2017-11-22 12:43 | 2018-01-03 12:39 | |||||||
Reporter | shuehner | |||||||||||
Assigned To | inigosanchez | |||||||||||
Priority | urgent | Severity | minor | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | 3.0PR18Q1 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | alostale | |||||||||||
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 | 0037358: Avoid query to AttributeData.selectOrgCurrency during login if system does not have any accounting schema. | |||||||||||
Description | The following code is from LoginUtils.fillSessionArguments running during login. It is running always and internally using ad_isorgincluded which can be slow after its recent refactor. // set organization currency orgCurrency = AttributeData.selectOrgCurrency(conn, strOrg, strCliente); But the only usage later in this file is: if (attr != null && attr.length > 0) { vars.setSessionValue("$C_AcctSchema_ID", attr[0].value); if (orgCurrency.length > 0) { vars.setSessionValue("$C_Currency_ID", orgCurrency[0].cCurrencyId); With attr being result of query to c_acctschema so only done if the system does at least have 1 accounting schema. In cases where customer does not have any accounting schema that we could skip the selectOrgCurrencyQuery completely just my moving the call into the attr != null if. | |||||||||||
Steps To Reproduce | - | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | Performance | |||||||||||
Relationships |
| |||||||||||
Attached Files | loginutils-skip_ad_isorgincluded-without-accounting.diff (1,133) 2017-11-22 14:47 https://issues.openbravo.com/file_download.php?file_id=11314&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2017-11-22 12:43 | shuehner | New Issue | ||||||||||
2017-11-22 12:43 | shuehner | Assigned To | => platform | |||||||||
2017-11-22 12:43 | shuehner | Modules | => Core | |||||||||
2017-11-22 12:43 | shuehner | Triggers an Emergency Pack | => No | |||||||||
2017-11-22 12:43 | shuehner | Tag Attached: Performance | ||||||||||
2017-11-22 14:38 | alostale | Status | new => acknowledged | |||||||||
2017-11-22 14:38 | alostale | Priority | normal => urgent | |||||||||
2017-11-22 14:47 | shuehner | File Added: loginutils-skip_ad_isorgincluded-without-accounting.diff | ||||||||||
2017-11-22 14:49 | shuehner | Note Added: 0100666 | ||||||||||
2017-11-22 14:52 | shuehner | Relationship added | related to 0035553 | |||||||||
2017-11-23 10:38 | inigosanchez | Status | acknowledged => scheduled | |||||||||
2017-11-23 10:38 | inigosanchez | Assigned To | platform => inigosanchez | |||||||||
2017-11-24 11:14 | inigosanchez | Review Assigned To | => alostale | |||||||||
2017-11-24 11:29 | hgbot | Checkin | ||||||||||
2017-11-24 11:29 | hgbot | Note Added: 0100699 | ||||||||||
2017-11-24 11:29 | hgbot | Status | scheduled => resolved | |||||||||
2017-11-24 11:29 | hgbot | Resolution | open => fixed | |||||||||
2017-11-24 11:29 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/b8fc412fa8bf926dcde5fc8da7c2de6b5c4ffada [^] | |||||||||
2017-11-27 10:05 | alostale | Note Added: 0100725 | ||||||||||
2017-11-27 10:05 | alostale | Status | resolved => closed | |||||||||
2017-11-27 10:05 | alostale | Fixed in Version | => 3.0PR18Q1 | |||||||||
2018-01-03 12:39 | hudsonbot | Checkin | ||||||||||
2018-01-03 12:39 | hudsonbot | Note Added: 0101456 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|