Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0025682 | Openbravo ERP | I. Performance | public | 2014-02-07 07:46 | 2014-02-07 14:09 |
|
Reporter | shuehner | |
Assigned To | shuehner | |
Priority | urgent | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | 3.0MP22.2 | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | dmiguelez |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0025682: Missing index for c_invoice table c_order_id column makes at least c_order_trg + c_order_trg2 slow |
Description | Both those triggers do an update to c_invoice which is looked up via c_invoice.c_order_id to synchronize a few fields from c_order to c_invoice.
with 700k rows in c_invoice just this one update is taking 230ms each time.
|
Steps To Reproduce | Observe trigger runtime in database with many invoices.
i.e. set track_functions = 'all' in pg config
Then after running code executing the update
check trigger runtime with select * from pg_stat_user_functions order by total_time desc |
Proposed Solution | Add proposed trigger
create index c_invoice_order on c_invoice(c_order_id); |
Additional Information | |
Tags | Performance |
Relationships | related to | defect | 0025683 | | closed | dmiguelez | c_order_trg is doing updates to c_invoice when not needed |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2014-02-07 07:46 | shuehner | New Issue | |
2014-02-07 07:46 | shuehner | Assigned To | => AugustoMauch |
2014-02-07 07:46 | shuehner | Modules | => Core |
2014-02-07 07:46 | shuehner | OBNetwork customer | => Yes |
2014-02-07 07:46 | shuehner | Triggers an Emergency Pack | => No |
2014-02-07 07:49 | shuehner | Relationship added | related to 0025683 |
2014-02-07 07:52 | shuehner | Note Added: 0064009 | |
2014-02-07 08:03 | alostale | Tag Attached: Performance | |
2014-02-07 08:03 | alostale | Assigned To | AugustoMauch => dmiguelez |
2014-02-07 12:33 | priyam | Issue Monitored: priyam | |
2014-02-07 14:01 | hgbot | Checkin | |
2014-02-07 14:01 | hgbot | Note Added: 0064016 | |
2014-02-07 14:01 | hgbot | Status | new => resolved |
2014-02-07 14:01 | hgbot | Resolution | open => fixed |
2014-02-07 14:01 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/c73830693d6559bcdcc997321ad3d93f47436f6b [^] |
2014-02-07 14:01 | shuehner | Assigned To | dmiguelez => shuehner |
2014-02-07 14:09 | dmiguelez | Review Assigned To | => dmiguelez |
2014-02-07 14:09 | dmiguelez | Note Added: 0064017 | |
2014-02-07 14:09 | dmiguelez | Status | resolved => closed |