Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037420Retail ModulesWeb POSpublic2017-11-28 11:072017-12-22 13:51
daniOpenbravo 
marvintm 
normalmajorhave not tried
closedfixed 
5
 
RR17Q4RR17Q4 
migueldejuana
No
0037420: [BUT Issue 3556] Delete in C_import_entry_archive query too long
The following executed query took more than 10 hours in BUT production environment (see attached images of Munin and pg_badger):

DELETE FROM C_Import_Entry_Archive WHERE Created & lt; now () - 30;
1) Analyze previous query.
No tags attached.
blocks defect 0037404 closed marvintm [BUT Issue 3556] Delete in C_import_entry_archive query too long 
Issue History
2017-11-30 10:19marvintmTypedefect => backport
2017-11-30 10:19marvintmTarget Version => RR17Q4
2017-12-19 18:46hgbotCheckin
2017-12-19 18:46hgbotNote Added: 0101147
2017-12-19 18:46hgbotStatusscheduled => resolved
2017-12-19 18:46hgbotResolutionopen => fixed
2017-12-19 18:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR17Q4/rev/d429c9745916627433e54a1146c2072aa4e5382d [^]
2017-12-22 13:51migueldejuanaReview Assigned To => migueldejuana
2017-12-22 13:51migueldejuanaNote Added: 0101238
2017-12-22 13:51migueldejuanaStatusresolved => closed
2017-12-22 13:51migueldejuanaFixed in Version => RR17Q4

Notes
(0101147)
hgbot   
2017-12-19 18:46   
Repository: erp/backports/3.0PR17Q4
Changeset: d429c9745916627433e54a1146c2072aa4e5382d
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Dec 19 18:46:40 2017 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR17Q4/rev/d429c9745916627433e54a1146c2072aa4e5382d [^]

Fixed issue 37420. Added index to improve performance of C_IMPORT_ENTRY_ARCHIVE deletion.

---
M src-db/database/model/tables/C_IMPORT_ENTRY_ARCHIVE.xml
---
(0101238)
migueldejuana   
2017-12-22 13:51   
Reviewed