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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0029173
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2015-03-06 14:032015-09-25 14:03
ReportercaristuView Statuspublic 
Assigned Toegoitz 
PriorityimmediateResolutionno change requiredFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version3.0PR15Q4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version3.0PR15Q1.1SCM revision 
Review Assigned Toegoitz
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0029173: Performance problem when filtering in Return to Vendor pick and execute lines having a big amount of data

DescriptionPerformance problem in Return to Vendor pick and execute lines in an environment with big amount of data.

Steps To Reproduce1) Go to the Return to Vendor window
2) Click on the Pick/Edit lines button
3) Filter by product, doing the following
   3.1) Type a string
   3.2) Click on the enter button of the kwyboard
4) Notice that postgres CPU usage increases until reaching the 100%

Attached the HQL query that is causing the performance problem
Contact CAR for an environment where the problem is reproducible.
TagsPerformance
Attached Filestxt file icon hqlQuery.txt [^] (6,012 bytes) 2015-03-06 14:41 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0029212 closedAugustoMauch can't filter multiple products in return from/to P&Es 
related to defect 0029216 closedalostale can't prevent filtering FK by identifier from Grid Configuration 

-  Notes
(0075248)
caristu (developer)
2015-03-06 14:04
edited on: 2015-03-06 14:04

To be decided if it is a platform issue, or a functional one in case the problem could be in the HQL query used for populating the data of the pick and edit

(0075394)
alostale (manager)
2015-03-10 14:34

Number of rows per table in the instance provided by CAR:

m_productprice 255138
m_transaction 151498
m_transaction_cost 151496
m_costing 69307
c_orderlinetax 66413
c_invoicelinetax 62059
m_inoutline 61710
c_orderline 61665
fin_payment_schedule 60542
c_orderline_offer 59782
c_invoiceline 57776
m_storage_detail 57486
c_invoiceline_offer 55465
m_product 42666
m_stock_proposed 39547
m_movementline 36470
c_ordertax 33025
c_invoicetax 32955
fin_payment_scheduledetail 32603
m_inout 31236
fin_payment_detail 30649
c_order 30544
c_invoice 30325
(0075395)
alostale (manager)
2015-03-10 14:40

Regardless of improving the query, filtering iContains for product identifier can't perform well.

Proposal:
* update to PR15Q2.1 (tested that upgrade and it went smoothly) where issues 0029212 and 0029216 are fixed
* In Grid Configuration
  - Add restriction in "Product - Pick / Edit Lines - RFC/RTV HQL Pick / Edit Lines" field to "Allow filtering by FK identifier" No

In this way it will be only possible to filter products by selecting them in the filter drop down list, making it work reasonably fast (~700ms per request).
(0075396)
alostale (manager)
2015-03-10 14:42

Check if proposed workaround solves the problem. If so, I'd propose to move this issue to Functional team setting it as design defect (it might require, if possible, major refactors in the query).
(0077676)
dmitry_mezentsev (developer)
2015-05-25 09:55

Hi Guys,

Any update here as it is now more than 2 months without any action.
Thanks.
(0078233)
caristu (developer)
2015-06-12 12:44

Waiting for customer response to confirm if the proposed workaround solves the problem.
(0079567)
dmitry_mezentsev (developer)
2015-08-21 11:20

Ping.
IMHO we need to close it. 3 months without feedback.
(0080640)
dmitry_mezentsev (developer)
2015-09-25 14:03

Proposed solution is provided but there is no feedback for too long.

- Issue History
Date Modified Username Field Change
2015-03-06 14:03 caristu New Issue
2015-03-06 14:03 caristu Assigned To => AugustoMauch
2015-03-06 14:03 caristu Modules => Core
2015-03-06 14:03 caristu Triggers an Emergency Pack => No
2015-03-06 14:04 caristu Note Added: 0075248
2015-03-06 14:04 caristu Issue Monitored: networkb
2015-03-06 14:04 caristu Note Edited: 0075248 View Revisions
2015-03-06 14:41 caristu File Added: hqlQuery.txt
2015-03-06 14:41 caristu Description Updated View Revisions
2015-03-06 14:41 caristu Steps to Reproduce Updated View Revisions
2015-03-09 12:10 jonalegriaesarte Resolution time => 1426374000
2015-03-09 18:54 AugustoMauch Assigned To AugustoMauch => alostale
2015-03-09 18:54 AugustoMauch Status new => scheduled
2015-03-10 09:52 alostale Tag Attached: Performance
2015-03-10 10:18 alostale Relationship added related to 0029212
2015-03-10 12:21 alostale Relationship added related to 0029216
2015-03-10 14:34 alostale Note Added: 0075394
2015-03-10 14:40 alostale Note Added: 0075395
2015-03-10 14:42 alostale Note Added: 0075396
2015-03-10 14:42 alostale Assigned To alostale => caristu
2015-03-10 14:42 alostale Status scheduled => feedback
2015-03-30 13:59 jonalegriaesarte Target Version 3.0PR15Q2 => 3.0PR15Q3
2015-05-25 09:55 dmitry_mezentsev Note Added: 0077676
2015-06-12 12:41 caristu Assigned To caristu => egoitz
2015-06-12 12:44 caristu Note Added: 0078233
2015-06-29 12:45 egoitz Target Version 3.0PR15Q3 => 3.0PR15Q4
2015-08-21 11:20 dmitry_mezentsev Note Added: 0079567
2015-09-25 14:03 dmitry_mezentsev Review Assigned To => egoitz
2015-09-25 14:03 dmitry_mezentsev Note Added: 0080640
2015-09-25 14:03 dmitry_mezentsev Status feedback => closed
2015-09-25 14:03 dmitry_mezentsev Resolution open => no change required


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker