Openbravo Issue Tracking System - Modules
View Issue Details
0030197ModulesValued Stock Enhancedpublic2015-06-17 10:302016-12-28 10:56
ioritzCia 
psarobe 
highmajoralways
closedduplicate 
30Ubuntu 14.04
 
 
aferraz
0030197: Enhanced valued stock report's performance is bad when no warehouse is filtered.
Enhanced valued stock report takes too long (12 min for example) if no warehouse is specified on the filters. The query is quite old and complex and should be refactored. Appart from refactoring it to work better, while improving it, it may now take the advantage of cost being in m_transaction table (it was not before).

You can go here http://explain.depesz.com/s/lZpm [^] to see an explain of the query. Takes too long to join m_inoutline and m_transaction tables, row 10 on the explain.

We have a clone of an instance where this can be reproduced.

Note: There is a collaborative development called Consolidation of stock pending to be accepted for 15PRQ4, this should also be reviewed.
- Go to Enhanced Valued Stock Report in an instance with lots of transactions.
- Launch the report without warehouse filter.
Refactor the query.
No tags attached.
duplicate of feature request 0034482 closed Triage Omni OMS Openbravo ERP Improve performance in Enhanced Valued Stock Report 
related to design defect 0031874 closed Triage Omni OMS Modules Performance problems in Valued Stock Report Enhanced 
Issue History
2015-06-17 10:30ioritzCiaNew Issue
2015-06-17 10:30ioritzCiaAssigned To => jonalegriaesarte
2015-06-18 09:51egoitzResolution time => 1437343200
2015-06-22 13:06jpcalventeIssue Monitored: jpcalvente
2015-06-22 13:34VictorVillarAssigned Tojonalegriaesarte => Triage Finance
2015-06-26 14:49VictorVillarAssigned ToTriage Finance => psarobe
2016-01-13 16:59dmiguelezRelationship addedrelated to 0031874
2016-04-22 14:41ngarciaIssue Monitored: ngarcia
2016-12-28 10:56aferrazReview Assigned To => aferraz
2016-12-28 10:56aferrazRelationship addedduplicate of 0034482
2016-12-28 10:56aferrazStatusnew => closed
2016-12-28 10:56aferrazResolutionopen => duplicate

There are no notes attached to this issue.