Notes |
|
(0072483)
|
szapata
|
2014-12-15 03:25
|
|
See attached pdf explaining where is spending more time when rendering the total.
The problem seems to be focused on Tax calculation and Discounts calculation.
Tested with the new discount flow and in line number 50 it was slow, testing with the old flow it started to be slow in line 150.
With profiler and timeline (chrome dev. tools), I saw that the most expensive transaction is the query executed in the success callback of the OBPOS_FindTaxRate hook.
Fixing this requires a big refactoring, trying to do a simpler query and process the data in plain javascript. |
|
|
|
I've tested it in an instance with all extra modules installed and the performance is really bad. We should check modules which add time when calculating a discount or when adding a product and analyze them. |
|
|
(0073830)
|
hgbot
|
2015-01-27 19:11
|
|
|
|
(0073831)
|
hgbot
|
2015-01-27 19:13
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 8f6126a90ab9bafcfa5d29f7859a3196790e069b
Author: Miguel A. Alsasua <miguel.alsasua <at> openbravo.com>
Date: Tue Jan 27 18:37:52 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/8f6126a90ab9bafcfa5d29f7859a3196790e069b [^]
fixed issue 28339: when line has not promotions related, event to create promotion is not created
---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
M web/org.openbravo.retail.posterminal/js/model/executor.js
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
|
|
|
(0073832)
|
hgbot
|
2015-01-27 19:13
|
|
|
|
(0073858)
|
hgbot
|
2015-01-28 14:11
|
|
|
|
(0073860)
|
hgbot
|
2015-01-28 15:12
|
|
|
|
(0073862)
|
hgbot
|
2015-01-28 16:15
|
|
|
|
(0073865)
|
hgbot
|
2015-01-28 17:12
|
|
|
|
(0073866)
|
hgbot
|
2015-01-28 17:21
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: d01540894fadc23e4c2769560869b6b035111c14
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Jan 28 17:21:19 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d01540894fadc23e4c2769560869b6b035111c14 [^]
Related to issue 28339. Two improvements in tax computation have been made:
- Now the main query to find taxes is cached.
- Reduced the number of Backbone 'set's called, and also made silent a couple of them, to minimize the number of events which are triggered, to increase performance
---
M web/org.openbravo.retail.posterminal/js/data/dataordertaxes.js
---
|
|
|
(0073886)
|
hgbot
|
2015-01-29 11:19
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 72e234375a44fcb1807afa01d394de7e8d61d725
Author: Miguel A. Alsasua <miguel.alsasua <at> openbravo.com>
Date: Thu Jan 29 10:55:44 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/72e234375a44fcb1807afa01d394de7e8d61d725 [^]
fixed issue 28339: revert changeset 12f4b1aed4ab: changed the event's executor to able to choice when start the execution of events
---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
M web/org.openbravo.retail.posterminal/js/model/executor.js
---
|
|
|
(0073887)
|
hgbot
|
2015-01-29 11:19
|
|
|
|
(0073888)
|
hgbot
|
2015-01-29 11:19
|
|
|
|
(0073900)
|
hgbot
|
2015-01-29 13:50
|
|
|
|
|
Not closed for 30 days!!!
Immediate action is required. |
|
|
(0074991)
|
hgbot
|
2015-02-26 18:26
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: e5e42f6bf6a6ff9eb2bc2c4745b69182dd76bd48
Author: Miguel A. Alsasua <miguel.alsasua <at> openbravo.com>
Date: Thu Feb 26 18:25:35 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/e5e42f6bf6a6ff9eb2bc2c4745b69182dd76bd48 [^]
fixed issue 28339: added silent:true to the property noDiscountCandidates
---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
M web/org.openbravo.retail.posterminal/js/model/executor.js
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
|
|
|
|
|