Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029226Openbravo ERP04. Warehouse managementpublic2015-03-10 16:322015-05-07 22:16
egoitz 
Triage Omni WMS 
urgentmajoralways
closedfixed 
5
 
3.0PR15Q3pi 
umartirena
Core
No
0029226: The value stock reports is slow with many rows on the m_transaction_cost table and most of the them are for the same locator
The execution of the report for an environment with the folloiwng amount of that on the affected tables takes arround 20 minutes.
Most of the transactions are for the same locator.

'm_transaction_cost';385315
'm_inout';26405
'm_product';3530
Execute the report without selecting product categories for a date bigger than the biggest one on the transaction cost table.

After execute the information of the sequencial scans igoniring the information genrated by the ad_column_identifier table is the following:
table,tot,seq_scan
'm_transaction_cost';385315;1
'm_inout';26405;1
'm_product';3530;1
'm_product_category';135;1
'c_uom';14;1
'm_locator';8;1

Performance
Issue History
2015-03-10 16:32egoitzNew Issue
2015-03-10 16:32egoitzAssigned To => Sandrahuguet
2015-03-10 16:32egoitzModules => Core
2015-03-10 16:32egoitzResolution time => 1396303200
2015-03-10 16:32egoitzTriggers an Emergency Pack => No
2015-03-10 16:34egoitzTag Attached: Performance
2015-03-26 11:46egoitzTypedesign defect => defect
2015-03-26 11:47egoitzResolution time1396303200 => 1397599200
2015-04-14 12:48Triage FinanceAssigned ToSandrahuguet => Triage Finance
2015-04-15 10:16ngarciaIssue Monitored: ngarcia
2015-04-17 16:55agarcia_tegikIssue Monitored: agarcia_tegik
2015-04-27 14:04hgbotCheckin
2015-04-27 14:04hgbotNote Added: 0076785
2015-04-27 14:04hgbotStatusnew => resolved
2015-04-27 14:04hgbotResolutionopen => fixed
2015-04-27 14:04hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f431237fa5b4a609157730ed5a234e7dbcc8cb60 [^]
2015-04-27 14:05umartirenaReview Assigned To => umartirena
2015-04-27 14:05umartirenaNote Added: 0076786
2015-04-27 14:05umartirenaStatusresolved => closed
2015-04-27 14:05umartirenaFixed in Version => pi
2015-05-07 22:16hudsonbotCheckin
2015-05-07 22:16hudsonbotNote Added: 0077161

Notes
(0076785)
hgbot   
2015-04-27 14:04   
Repository: erp/devel/pi
Changeset: f431237fa5b4a609157730ed5a234e7dbcc8cb60
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu Apr 16 10:17:04 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f431237fa5b4a609157730ed5a234e7dbcc8cb60 [^]

Fixed issue 29226: Value stock report is slow with many rows on m_transaction

The value stock reports is slow with many rows on the m_transaction_cost table
and most of the them are for the same locator.

The problem was in the sql query from the report. This query needed an
improvement.

The sql query from ReportValuationStockData has changed and now the report is
faster and the return values are the same as before.

---
M src/org/openbravo/erpCommon/ad_reports/ReportValuationStock_data.xsql
---
(0076786)
umartirena   
2015-04-27 14:05   
Code Review + Testing OK
(0077161)
hudsonbot   
2015-05-07 22:16   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/a1817f84bd8b [^]
Maturity status: Test