Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0038605 | Openbravo ERP | I. Performance | public | 2018-05-09 16:36 | 2018-05-23 15:30 | |||||||
Reporter | JONHM | |||||||||||
Assigned To | dmiguelez | |||||||||||
Priority | urgent | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | 3.0PR18Q2.1 | Fixed in Version | 3.0PR18Q2.1 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | dmiguelez | |||||||||||
OBNetwork customer | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0038605: Slow updating to 18Q2 on an environment with high loads of data | |||||||||||
Description | Slow updating to 18Q2 on an environment with high loads of data. It seems to be related to UpdateIsCompletelyInvoiced modulescript, published on that same version. | |||||||||||
Steps To Reproduce | Having an environment with high loads of data: m_inout = 628114 m_inoutline = 2983732 c_invoice = 585358 c_invoiceline = 1547408 Update to 18Q2. The performance of this query will last for hours: UPDATE M_InOut SET iscompletelyinvoiced = 'Y' WHERE issotrx = 'Y' AND NOT EXISTS (SELECT 1 FROM M_INOUTLINE l LEFT JOIN c_invoiceline il ON l.m_inoutline_id = il.m_inoutline_id LEFT JOIN c_invoice i ON il.c_invoice_id = i.c_invoice_id WHERE l.M_INOUT_ID = M_InOut.M_INOUT_ID GROUP BY l.m_inoutline_id, l.movementqty HAVING ( l.movementqty >= 0 AND l.movementqty > Sum(COALESCE(CASE WHEN i.docstatus = 'CO' THEN il.qtyinvoiced ELSE 0 END, 0)) ) OR ( l.movementqty < 0 AND l.movementqty < Sum(COALESCE(CASE WHEN i.docstatus = 'CO' THEN il.qtyinvoiced ELSE 0 END, 0)) ) ) | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2018-05-23 13:10 | dmiguelez | Type | defect => backport | |||||||||
2018-05-23 13:10 | dmiguelez | Target Version | => 3.0PR18Q2.1 | |||||||||
2018-05-23 13:34 | hgbot | Checkin | ||||||||||
2018-05-23 13:34 | hgbot | Note Added: 0104647 | ||||||||||
2018-05-23 13:34 | hgbot | Status | scheduled => resolved | |||||||||
2018-05-23 13:34 | hgbot | Resolution | open => fixed | |||||||||
2018-05-23 13:34 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/7e3181b595b0a65ddc7d04c42e41a40bbfb5cc0c [^] => http://code.openbravo.com/erp/backports/3.0PR18Q2.1/rev/9ac3c2f0a875663adc151dc7a39f0acac8c3bf0a [^] | |||||||||
2018-05-23 13:34 | hgbot | Checkin | ||||||||||
2018-05-23 13:34 | hgbot | Note Added: 0104648 | ||||||||||
2018-05-23 13:34 | dmiguelez | Note Added: 0104649 | ||||||||||
2018-05-23 13:34 | dmiguelez | Status | resolved => closed | |||||||||
2018-05-23 13:34 | dmiguelez | Fixed in Version | => 3.0PR18Q2.1 | |||||||||
2018-05-23 15:30 | hgbot | Checkin | ||||||||||
2018-05-23 15:30 | hgbot | Note Added: 0104653 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|