Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0043390 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Layaway order | major | have not tried | 2020-03-02 17:51 | 2020-03-12 13:14 | |||
Reporter | ALopetegui | View Status | public | |||||
Assigned To | rqueralta | |||||||
Priority | high | Resolution | fixed | Fixed in Version | RR20Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | f6e7f2427735 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | pi | SCM revision | ||||||
Review Assigned To | marvintm | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0043390: Void Layaway BGProcess bad performance | |||||||
Description | Automatic void of layaway BGProcess has bad performance query getting the layaway List. | |||||||
Steps To Reproduce | In high volume environment run "Automatic void of layaway" BGProcess. Here the query explain plan https://explain.depesz.com/s/FJ8b [^] | |||||||
Proposed Solution | The launched query needs to be filtered also for ad_client_id in order to perform correctly the core index c_order_client_org_date_docno. In the past there was a custom index of symmetric DS, only ad_org_id in c_order, but after symmetricDS unistall, the core index doesn't work properly if we dont' filter by ad_client_id. Attached diff to filter also by ad_client_id, doing a subselect to get the id: Here the new explain plan: https://explain.depesz.com/s/3ybN [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | VoidLayawaysBGProcess.diff [^] (899 bytes) 2020-03-02 17:51 [Show Content] | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Notes | |
(0118432) hgbot (developer) 2020-03-09 22:03 |
Repository: erp/pmods/org.openbravo.retail.autocancelreservation Changeset: f6e7f24277354ad196efc79fa0eb903ef658e023 Author: Rafael Queralta <rafaelcuba81 <at> gmail.com> Date: Mon Mar 09 17:02:59 2020 -0400 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.autocancelreservation/rev/f6e7f24277354ad196efc79fa0eb903ef658e023 [^] Fixed BUG-43390: Void Layaway BGProcess bad performance - Filter by ad_client_id, doing a subselect to get the id --- M src/org/openbravo/retail/autocancelreservation/process/VoidLayawaysBGProcess.java --- |
Issue History | |||
Date Modified | Username | Field | Change |
2020-03-02 17:51 | ALopetegui | New Issue | |
2020-03-02 17:51 | ALopetegui | Assigned To | => Retail |
2020-03-02 17:51 | ALopetegui | File Added: VoidLayawaysBGProcess.diff | |
2020-03-02 17:51 | ALopetegui | Resolution time | => 1581807600 |
2020-03-02 17:51 | ALopetegui | Triggers an Emergency Pack | => No |
2020-03-04 19:09 | marvintm | Resolution time | 1581807600 => 1585004400 |
2020-03-09 16:30 | rqueralta | Assigned To | Retail => rqueralta |
2020-03-09 16:30 | rqueralta | Status | new => scheduled |
2020-03-09 22:03 | hgbot | Checkin | |
2020-03-09 22:03 | hgbot | Note Added: 0118432 | |
2020-03-09 22:03 | hgbot | Status | scheduled => resolved |
2020-03-09 22:03 | hgbot | Resolution | open => fixed |
2020-03-09 22:03 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.autocancelreservation/rev/f6e7f24277354ad196efc79fa0eb903ef658e023 [^] |
2020-03-12 12:46 | ALopetegui | Issue Monitored: ALopetegui | |
2020-03-12 13:14 | marvintm | Review Assigned To | => marvintm |
2020-03-12 13:14 | marvintm | Status | resolved => closed |
2020-03-12 13:14 | marvintm | Fixed in Version | => RR20Q2 |
Copyright © 2000 - 2009 MantisBT Group |