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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0056806
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajoralways2024-10-16 14:312024-11-16 06:33
Reporterfermin_ostivarView Statuspublic 
Assigned Tosreehari 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Statusapproved
Review Assigned To
OBNetwork customerNo
Support ticket111587
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0056806: Terminal OffLine Master Data DiscountFIlter call timeout

DescriptionThe Master Data call DiscountFilterProduct has a bad performance on incremental refresh
Steps To ReproduceSet a number of discounts assigning several products and execute incremental refresh on the till adding new discounts and products.
TagsNo tags attached.
Attached Filescsv file icon query-plan.csv [^] (5,905 bytes) 2024-10-28 14:58
? file icon HQL-Query [^] (2,752 bytes) 2024-10-28 14:59 [Show Content]
? file icon SQL-Query [^] (2,259 bytes) 2024-10-28 14:59 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to design defect 0052716 closedRetail Retail Modules Performance issue with masterdata query: DiscountFilterProduct 
causes defect 0057118 closedmarvintm POS2 The 'Query Exception' is shown after 'Refresh Masterdata' is done in VB terminal 

-  Notes
(0171056)
sreehari (viewer)
2024-10-28 15:02
edited on: 2024-10-28 15:07

Have attached the HQL & SQL queries on masterdata modal "DiscountFilterProduct".

Also attached the query-plan, which has the execution details of the existing query.

Have added additional index on "M_Offer.ad_client_id" and "M_Offer_PriceList.m_pricelist_id" but still no big difference on the execution time.

Attaching the link showing the index execution of the tables involed in the query
https://explain.depesz.com/s/FZd2#stats [^]

NOTE: The query execution was around 20 to 23 seconds which is tested with 300k+ records on related tables

(0171462)
hgbot (developer)
2024-11-06 06:03

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1754 [^]
(0171783)
hgbot (developer)
2024-11-12 07:45

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: a393ba3b9e5e575a07f7bc685df33a476e68903f
Author: Sreehari Venkataraman <s.venkataraman@external.orisha.com>
Date: 12-11-2024 06:45:14
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/a393ba3b9e5e575a07f7bc685df33a476e68903f [^]

Fixes ISSUE-56806: Used Preference to avoid joins for faster performance

---
M src-db/database/sourcedata/AD_PREFERENCE.xml
M src-db/database/sourcedata/AD_REF_LIST.xml
M src/org/openbravo/retail/posterminal/master/Discount.java
M src/org/openbravo/retail/posterminal/master/DiscountFilterProduct.java
M src/org/openbravo/retail/posterminal/master/DiscountFilterProductProperties.java
---
(0171784)
hgbot (developer)
2024-11-12 07:45

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1754 [^]

- Issue History
Date Modified Username Field Change
2024-10-16 14:31 fermin_ostivar New Issue
2024-10-16 14:31 fermin_ostivar Assigned To => Retail
2024-10-16 14:31 fermin_ostivar OBNetwork customer => No
2024-10-16 14:31 fermin_ostivar Support ticket => 111587
2024-10-16 14:31 fermin_ostivar Triggers an Emergency Pack => No
2024-10-17 23:48 guilleaer Status new => acknowledged
2024-10-23 09:11 guillermogil Assigned To Retail => jorgewederago
2024-10-23 10:28 guilleaer Assigned To jorgewederago => guilleaer
2024-10-23 11:03 sreehari Assigned To guilleaer => sreehari
2024-10-23 11:03 sreehari Status acknowledged => scheduled
2024-10-28 14:58 sreehari File Added: query-plan.csv
2024-10-28 14:59 sreehari File Added: HQL-Query
2024-10-28 14:59 sreehari File Added: SQL-Query
2024-10-28 15:02 sreehari Note Added: 0171056
2024-10-28 15:07 sreehari Note Edited: 0171056 View Revisions
2024-11-06 06:03 hgbot Merge Request Status => open
2024-11-06 06:03 hgbot Note Added: 0171462
2024-11-11 08:30 hgbot Merge Request Status open => approved
2024-11-12 07:45 hgbot Resolution open => fixed
2024-11-12 07:45 hgbot Status scheduled => closed
2024-11-12 07:45 hgbot Fixed in Version => RR25Q1
2024-11-12 07:45 hgbot Note Added: 0171783
2024-11-12 07:45 hgbot Note Added: 0171784
2024-11-16 06:33 guillermogil Relationship added causes 0057118
2025-02-02 06:21 guillermogil Relationship added related to 0052716


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker