Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0029332 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
defect | [Retail Modules] Web POS | major | always | 2015-03-18 12:14 | 2015-03-31 18:52 | |||||||
Reporter | Orekaria | View Status | public | |||||||||
Assigned To | Retail | |||||||||||
Priority | normal | Resolution | open | Fixed in Version | ||||||||
Status | new | Fix in branch | Fixed in SCM revision | |||||||||
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 | ||||||||||||
OBNetwork customer | No | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0029332: Performance: LogClient should not persist until the business layer has persisted | |||||||||||
Description | Performance: LogClient should not persist until the business layer has persisted Saving log to the database while business operations are being held, negatively affects performance The only benefit would be if the log would be instantly persisted in the server which is not our scenario | |||||||||||
Steps To Reproduce | In the 'ob-dal.js' file Add this lines in the ob.dal.save method: OB.Data.localDB.transaction(function (tx) { console.error("ob.dal.save " , sql, params); try { tx.executeSql(sql, params, silentFunction(success), function (txError, e) { executeSqlErrorHandler('error', "OB.Dal.save: table", tableName, txError, e); Go to the WebPOS Log in Verify that the log is populated with log client database saves in between business database saves | |||||||||||
Proposed Solution | Brain storm - Save the log to the localStorage and flush it when the 'dataSynchronized' event of the SynchronizationHelper has fired - Do not use the ob.dal.save for the logclient and remove all the already introduced exceptions because of this | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | ||||||||||||
![]() |
||||||||||||||||||||||||||||||||||||
|
Copyright © 2000 - 2009 MantisBT Group |