Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0033135 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | minor | have not tried | 2016-06-05 13:40 | 2017-11-30 10:36 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | shuehner | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR16Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 5d366c012ee8 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | marvintm | |||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0033135: LogClientLoader does useless select to ad_user (and indirectly ad_language) on every insert | |||||||
Description | The updateAuditInfo method in LogClientLoader.java uses OBDal.getInstance().get instead of a Proxy triggering 1 select to ad_user (and dal indirectly a 2nd select to ad_language). Using a proxy avoid both useless reads from the database. | |||||||
Steps To Reproduce | Trace sql's done by i.e. setting log_min_duration_statement = 0 and trigger LogClientLoader | |||||||
Tags | Performance | |||||||
Attached Files | ![]() | |||||||
![]() |
||||||||
|
![]() |
|
(0087122) hgbot (developer) 2016-06-09 15:40 |
Repository: erp/pmods/org.openbravo.mobile.core Changeset: 5d366c012ee83ae67b51853d55240aabf9dff19b Author: Stefan Hühner <stefan.huehner <at> openbravo.com> Date: Tue Jun 07 16:59:46 2016 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/5d366c012ee83ae67b51853d55240aabf9dff19b [^] Fixed 33135. Avoid reading ad_user by using Proxy object. Use Proxy for ad_user when saving in LogClientLoader to avoid unnecessary read from ad_user table. --- M src/org/openbravo/mobile/core/utils/LogClientLoader.java --- |
(0087123) shuehner (administrator) 2016-06-09 15:41 |
This change relies on getting valid ad_user_id as parameters and not some bad wrong values. |
![]() |
|||
Date Modified | Username | Field | Change |
2016-06-05 13:40 | shuehner | New Issue | |
2016-06-05 13:40 | shuehner | Assigned To | => Retail |
2016-06-05 13:40 | shuehner | OBNetwork customer | => No |
2016-06-05 13:40 | shuehner | Triggers an Emergency Pack | => No |
2016-06-05 13:40 | shuehner | Tag Attached: Performance | |
2016-06-05 13:44 | shuehner | File Added: 33135.diff | |
2016-06-05 13:51 | shuehner | Relationship added | related to 0033136 |
2016-06-09 15:40 | hgbot | Checkin | |
2016-06-09 15:40 | hgbot | Note Added: 0087122 | |
2016-06-09 15:40 | hgbot | Status | new => resolved |
2016-06-09 15:40 | hgbot | Resolution | open => fixed |
2016-06-09 15:40 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/5d366c012ee83ae67b51853d55240aabf9dff19b [^] |
2016-06-09 15:40 | shuehner | Assigned To | Retail => shuehner |
2016-06-09 15:41 | shuehner | Review Assigned To | => marvintm |
2016-06-09 15:41 | shuehner | Note Added: 0087123 | |
2016-06-10 09:05 | marvintm | Status | resolved => closed |
2017-11-30 10:36 | shuehner | Fixed in Version | => RR16Q3 |
Copyright © 2000 - 2009 MantisBT Group |