Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0042392 | Openbravo ERP | A. Platform | public | 2019-11-25 16:48 | 2021-02-09 10:50 |
Reporter | ioritzCia | ||||
Assigned To | cberner | ||||
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 30 | OS Version | Ubuntu 18.04 | |
Product Version | |||||
Target Version | Fixed in Version | PR21Q1 | |||
Merge Request Status | approved | ||||
Review Assigned To | |||||
OBNetwork customer | Gold | ||||
Web browser | Google Chrome | ||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0042392: Create index to improve queries over c_import_entry | ||||
Description | There are a lot of queries that filter by typeofdata and importstatus. There is already an index by (typeofdata, created), but it would be nice to have one by (importstatus, typeofdata) in this order. Having it in this order gives the benefit of having indexed filters by either typeofdata or importstatus. | ||||
Steps To Reproduce | In a big customer instance with import entry mechanism working execute the following sentence in the database: select * from pg_stat_statements where query ilike '%c_import_entry%typeofdata%'; This will show queries that have been executed in the database trying to filter by typeofdata they will have done it going through the index (typeofdata, created) and afterwards filtering by typeofdata. Plan without index: Limit (cost=2.52..2.52 rows=1 width=1407) (actual time=0.024..0.024 rows=0 loops=1) -> Sort (cost=2.52..2.52 rows=1 width=1407) (actual time=0.022..0.022 rows=0 loops=1) Sort Key: created, createdtimestamp Sort Method: quicksort Memory: 25kB -> Index Scan using c_import_entry_idx on c_import_entry c_import_e0_ (cost=0.29..2.51 rows=1 width=1407) (actual time=0.018..0.019 rows=0 loops=1) Index Cond: ((importstatus)::text = 'Initial'::text) Filter: ((typeofdata)::text = 'Order'::text) Rows Removed by Filter: 1 Plan with index: Limit (cost=2.51..2.52 rows=1 width=1407) (actual time=0.020..0.020 rows=0 loops=1) -> Sort (cost=2.51..2.52 rows=1 width=1407) (actual time=0.019..0.019 rows=0 loops=1) Sort Key: created, createdtimestamp Sort Method: quicksort Memory: 25kB -> Index Scan using c_import_entry_type_status on c_import_entry c_import_e0_ (cost=0.29..2.50 rows=1 width=1407) (actual time=0.015..0.015 rows=0 loops=1) Index Cond: (((typeofdata)::text = 'Order'::text) AND ((importstatus)::text = 'Initial'::text)) | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | NOR, Performance | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=13584&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2019-11-25 16:48 | ioritzCia | New Issue | |||
2019-11-25 16:48 | ioritzCia | Assigned To | => platform | ||
2019-11-25 16:48 | ioritzCia | OBNetwork customer | => Gold | ||
2019-11-25 16:48 | ioritzCia | Web browser | => Google Chrome | ||
2019-11-25 16:48 | ioritzCia | Modules | => Core | ||
2019-11-25 16:48 | ioritzCia | Triggers an Emergency Pack | => No | ||
2019-11-25 16:53 | ioritzCia | File Added: index.diff | |||
2019-11-25 16:57 | ioritzCia | Tag Attached: Performance | |||
2019-12-26 11:07 | AugustoMauch | Note Added: 0116529 | |||
2019-12-26 11:07 | AugustoMauch | Status | new => feedback | ||
2020-08-10 17:15 | ALopetegui | Note Added: 0121954 | |||
2020-08-10 17:21 | ALopetegui | Web browser | Google Chrome => Google Chrome | ||
2020-08-10 17:21 | ALopetegui | Resolution time | => 1598220000 | ||
2020-08-10 17:21 | ALopetegui | Status | feedback => new | ||
2020-08-10 17:23 | ALopetegui | Issue Monitored: ALopetegui | |||
2020-08-17 12:25 | AugustoMauch | Assigned To | platform => cberner | ||
2020-08-19 12:07 | hgbot | Merge Request Status | => open | ||
2020-08-19 12:07 | hgbot | Note Added: 0122167 | |||
2020-08-19 13:28 | cberner | Note Added: 0122175 | |||
2020-08-19 13:28 | cberner | Status | new => feedback | ||
2020-08-20 08:38 | cberner | Status | feedback => scheduled | ||
2020-08-20 12:34 | cberner | Status | scheduled => feedback | ||
2020-08-24 13:55 | ioritzCia | Web browser | Google Chrome => Google Chrome | ||
2020-08-24 13:55 | ioritzCia | Severity | major => minor | ||
2020-08-24 13:59 | AugustoMauch | Web browser | Google Chrome => Google Chrome | ||
2020-08-24 13:59 | AugustoMauch | Resolution time | 1598220000 => | ||
2020-09-09 10:21 | cberner | Status | feedback => new | ||
2020-10-13 09:48 | cberner | Note Added: 0123664 | |||
2020-10-13 10:10 | cberner | Note Edited: 0123664 | bug_revision_view_page.php?bugnote_id=0123664#r21775 | ||
2020-10-13 10:10 | cberner | Note Edited: 0123664 | bug_revision_view_page.php?bugnote_id=0123664#r21776 | ||
2020-10-13 17:09 | cberner | Note Edited: 0123664 | bug_revision_view_page.php?bugnote_id=0123664#r21777 | ||
2020-11-04 14:28 | hgbot | Merge Request Status | open => approved | ||
2020-11-04 14:28 | hgbot | Resolution | open => fixed | ||
2020-11-04 14:28 | hgbot | Status | new => closed | ||
2020-11-04 14:28 | hgbot | Note Added: 0124175 | |||
2020-11-04 14:28 | hgbot | Fixed in Version | => PR21Q1 | ||
2020-11-04 14:28 | hgbot | Note Added: 0124176 | |||
2021-02-09 10:50 | rafaroda | Tag Attached: NOR |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|