Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0033644 | Retail Modules | Web POS | public | 2016-08-07 11:13 | 2017-01-17 17:23 |
Reporter | mtaal | ||||
Assigned To | Retail | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0033644: Too many preference queries, this while preferences are cached in the http session already | ||||
Description | When using WebPOS there are many places where a query for preferences is done for the current user, code like this [1]. In addition while logging in all preferences are read/queried [2]. This can also all be read from the session as all preferences are already loaded in the session also [3]. [1] https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/6de25cf75f58/src/org/openbravo/retail/posterminal/master/Product.java#l76 [^] [2] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/0b3137a4bb61/src/org/openbravo/mobile/core/login/RolePermissions.java#l122 [^] [3] https://code.openbravo.com/erp/devel/pi/file/ae1076c7e9ea/src/org/openbravo/base/secureApp/LoginUtils.java#l332 [^] | ||||
Steps To Reproduce | Enable sql logging Login to webpos check how many preference queries are being done | ||||
Proposed Solution | Add a method to the Preferences class to read a preference for the current user. When logging in then instead of calling getAllPreferences, read the preferences which are already present in the session. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | rolepermission-diff-not-applied.diff (4,133) 2016-08-07 11:38 https://issues.openbravo.com/file_download.php?file_id=9686&type=bug 33644-posterminal.diff (22,318) 2016-08-07 12:03 https://issues.openbravo.com/file_download.php?file_id=9689&type=bug 33644-mobile-core.diff (2,495) 2016-08-07 12:03 https://issues.openbravo.com/file_download.php?file_id=9690&type=bug 33644-erp-core.diff (3,375) 2016-08-07 12:03 https://issues.openbravo.com/file_download.php?file_id=9691&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-08-07 11:13 | mtaal | New Issue | |||
2016-08-07 11:13 | mtaal | Assigned To | => mtaal | ||
2016-08-07 11:13 | mtaal | Triggers an Emergency Pack | => No | ||
2016-08-07 11:33 | mtaal | Note Added: 0088866 | |||
2016-08-07 11:38 | mtaal | File Added: rolepermission-diff-not-applied.diff | |||
2016-08-07 12:03 | mtaal | File Added: 33644-posterminal.diff | |||
2016-08-07 12:03 | mtaal | File Added: 33644-mobile-core.diff | |||
2016-08-07 12:03 | mtaal | File Added: 33644-erp-core.diff | |||
2016-08-31 01:18 | mtaal | Target Version | RR16Q4 => | ||
2017-01-17 17:23 | mtaal | Assigned To | mtaal => Retail |
Notes | |||||
|
|||||
|
|