Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0044746
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POScriticalalways2020-08-04 09:182020-09-04 08:12
ReporterguillermogilView Statuspublic 
Assigned Toprakashmurugesan88 
PriorityurgentResolutionno change requiredFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionRR20Q1.2SCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0044746: Login time too high

DescriptionTime to login is big even if we are not doing the incremental refresh (we are using the "No Incremental Refresh at Login" preference):
TIMING
initModels: 62.0150000004287ms
initUI: 702.064999999493ms
loadModels: 5107.645000000048ms (almost all of the time in DiscountInitCache: 4958.859999999731ms)
renderUI: 282.6650000006339ms
TOTAL: 6155.445000000327ms

Biggest data we have:
75k products
3k discounts
3k discounts product
We have lots of BPs although the the model is set as remote


Note: It does not seems to happen on future releases due to the indexedDB feature
Steps To ReproduceLogin
F5
You will notice that the time to login is high
Proposed SolutionOn init the cache should be avoided to use the transformation to backbone models
TagsPerformance
Attached Filespatch file icon I44746_ScaledPrice_V2.patch [^] (4,443 bytes) 2020-08-21 07:24 [Show Content]
patch file icon I44746_Combo_V2.patch [^] (7,942 bytes) 2020-08-21 07:24 [Show Content]
patch file icon I44746_ByTotal_V2.patch [^] (5,575 bytes) 2020-08-21 07:24 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0044855RR20Q2.2 closedprakashmurugesan88 Login time too high 
has duplicate defect 0044846 closedRetail Performance problem loading a POS Terminal with high amount of discounts 

-  Notes
(0121808)
marvintm (manager)
2020-08-04 14:49

Several important details to consider for this issue:
- It only happens in the old WebSQL implementation, and not in IndexedDB
- The performance problem mainly comes from the Backbone transformation. I have attached a proof-of-concept fix idea that should be implemented for all queries in the initCache function of the discounts cache initialisation.
(0122118)
hgbot (developer)
2020-08-18 08:06

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/61 [^]
(0122193)
marvintm (manager)
2020-08-20 06:21

In the current version, the code causing the problem does not longer exist, so we are closing the main issue. However, we have created a backport for 20Q2 release (when the problem still exists) and we will fix it there.

- Issue History
Date Modified Username Field Change
2020-08-04 09:18 guillermogil New Issue
2020-08-04 09:18 guillermogil Assigned To => Retail
2020-08-04 09:18 guillermogil Resolution time => 1598306400
2020-08-04 09:18 guillermogil Triggers an Emergency Pack => No
2020-08-04 09:18 guillermogil Tag Attached: Performance
2020-08-04 09:20 guillermogil Summary Login time too long => Login time too high
2020-08-04 09:20 guillermogil Description Updated View Revisions
2020-08-04 14:49 marvintm Note Added: 0121808
2020-08-04 14:52 marvintm File Added: performanceFixForDiscountsCache.txt
2020-08-12 05:16 prakashmurugesan88 Assigned To Retail => prakashmurugesan88
2020-08-18 08:06 hgbot Note Added: 0122118
2020-08-18 08:07 prakashmurugesan88 Status new => scheduled
2020-08-19 07:27 prakashmurugesan88 File Added: I44746_Bytotal.patch
2020-08-19 07:27 prakashmurugesan88 File Added: I44746_Combo.patch
2020-08-19 07:27 prakashmurugesan88 File Added: I44746_ScaledPrice.patch
2020-08-19 07:32 marvintm File Deleted: performanceFixForDiscountsCache.txt
2020-08-19 07:38 prakashmurugesan88 File Added: I44746_Posterminal.patch
2020-08-19 07:46 prakashmurugesan88 Status scheduled => resolved
2020-08-19 07:46 prakashmurugesan88 Resolution open => fixed
2020-08-19 08:12 marvintm Status resolved => new
2020-08-19 08:12 marvintm Resolution fixed => open
2020-08-19 08:12 marvintm Status new => scheduled
2020-08-20 06:19 marvintm Status scheduled => acknowledged
2020-08-20 06:19 marvintm Status acknowledged => scheduled
2020-08-20 06:21 marvintm Review Assigned To => marvintm
2020-08-20 06:21 marvintm Note Added: 0122193
2020-08-20 06:21 marvintm Status scheduled => closed
2020-08-20 06:21 marvintm Resolution open => no change required
2020-08-21 07:22 prakashmurugesan88 File Deleted: I44746_Posterminal.patch
2020-08-21 07:22 prakashmurugesan88 File Deleted: I44746_ScaledPrice.patch
2020-08-21 07:23 prakashmurugesan88 File Deleted: I44746_Combo.patch
2020-08-21 07:23 prakashmurugesan88 File Deleted: I44746_Bytotal.patch
2020-08-21 07:24 prakashmurugesan88 File Added: I44746_ScaledPrice_V2.patch
2020-08-21 07:24 prakashmurugesan88 File Added: I44746_Combo_V2.patch
2020-08-21 07:24 prakashmurugesan88 File Added: I44746_ByTotal_V2.patch
2020-08-24 06:47 marvintm Relationship added has duplicate 0044846
2020-09-04 08:12 marvintm Severity major => critical


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker