Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| View Issue Details | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 0025182 | Openbravo ERP | A. Platform | public | 2013-11-19 13:30 | 2014-01-20 06:25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Reporter | jonalegriaesarte | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Assigned To | alostale | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Priority | urgent | Severity | major | Reproducibility | have not tried | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Status | closed | Resolution | fixed | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Platform | OS | 5 | OS Version | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Product Version | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Target Version | 3.0PR14Q2 | Fixed in Version | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Merge Request Status | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Review Assigned To | shankarb | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| OBNetwork customer | OBPS | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Web browser | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Modules | Core | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Support ticket | 24785 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Regression level | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Regression date | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Regression introduced in release | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Regression introduced by commit | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Triggers an Emergency Pack | No | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Summary | 0025182: Query in org drop down in the list field is having bad performance | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description | This is the version of the query we can see coming from the application, when trying to see the organziation drop down list in the filter: select * from ( select distinct organizati1_.AD_Org_ID as col_0_0_, organizati1_.Name as col_1_0_ from M_Product product0_ left outer join AD_Org organizati1_ on product0_.AD_Org_ID=organizati1_.AD_Org_ID where (upper(nvl(to_char(organizati1_.Name), '')) like '%PVM%' escape '|') and (product0_.AD_Org_ID in ('20061' , '20063' , '20062' , '20003' , '20002' , '20023' , '20022' , '20025' , '20001' , '20026' , '20064' , '20065' , '20066' , '20067' , '20068' , '20052' , '20051' , '20012' , '20011' , '0' , '20016' , '20015' , '20055' , '20056' , '20053' , '20054')) and (product0_.AD_Client_ID in ('1969' , '0')) and product0_.IsActive='Y' order by organizati1_.Name, organizati1_.AD_Org_ID ) where rownum <= 100 ; The cost of this query is very high | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Steps To Reproduce | - Product window with 2 millions of entries - Open the drop down list to filter by organization | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Proposed Solution | The following SQL would improve that cost: is proposing the following query because the cost is improving: select * from ( select distinct organizati1_.AD_Org_ID as col_0_0_, organizati1_.Name as col_1_0_ from AD_Org organizati1_ where exists (select 1 from m_product product0_ where (product0_.AD_Org_ID in ('20061' , '20063' , '20062' , '20003' , '20002' , '20023' , '20022' , '20025' , '20001' , '20026' , '20064' , '20065' , '20066' , '20067' , '20068' , '20052' , '20051' , '20012' , '20011' , '0' , '20016' , '20015' , '20055' , '20056' , '20053' , '20054')) and (product0_.AD_Client_ID in ('1969' , '0')) and product0_.IsActive='Y' and organizati1_.ad_org_id = product0_.ad_org_id) and (upper(nvl(to_char(organizati1_.Name), '')) like '%PVM%' escape '|') order by organizati1_.Name, organizati1_.AD_Org_ID ) where rownum <= 100; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Additional Information | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Tags | Performance | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Relationships |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Attached Files | https://issues-new.openbravo.com/file_download.php?file_id=6571&type=bug | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Issue History | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Date Modified | Username | Field | Change | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-11-19 13:30 | jonalegriaesarte | New Issue | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-11-19 13:30 | jonalegriaesarte | Assigned To | => AugustoMauch | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-11-19 13:30 | jonalegriaesarte | Modules | => Core | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-11-19 13:30 | jonalegriaesarte | OBNetwork customer | => Yes | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-11-19 13:30 | jonalegriaesarte | Support ticket | => 24785 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-11-19 13:30 | jonalegriaesarte | Triggers an Emergency Pack | => No | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-11-19 13:31 | jonalegriaesarte | Tag Attached: Performance | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-11-19 17:43 | alostale | Assigned To | AugustoMauch => shankarb | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-11-25 12:51 | alostale | Relationship added | related to 0025210 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-11-25 12:57 | alostale | Relationship added | related to 0025211 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-12-02 09:55 | jonalegriaesarte | Target Version | 3.0MP30 => 3.0MP31 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-12-17 09:44 | alostale | File Added: issue-25182.diff | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-12-17 09:45 | alostale | Note Added: 0062739 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-12-17 09:45 | alostale | Target Version | 3.0MP31 => 3.0MP32 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-12-17 09:45 | alostale | Assigned To | shankarb => alostale | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-12-19 17:29 | alostale | Relationship added | related to 0025378 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-12-19 17:30 | alostale | Note Added: 0062881 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-12-19 17:30 | alostale | Relationship added | related to 0025248 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2013-12-19 17:51 | alostale | Relationship replaced | blocks 0025378 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2014-01-07 13:45 | alostale | Note Added: 0063234 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2014-01-07 13:48 | alostale | Note Edited: 0063234 | bug_revision_view_page.php?bugnote_id=0063234#r5292 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2014-01-07 13:56 | alostale | Review Assigned To | => shankarb | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2014-01-08 08:26 | hgbot | Checkin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2014-01-08 08:26 | hgbot | Note Added: 0063276 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2014-01-08 08:26 | hgbot | Status | new => resolved | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2014-01-08 08:26 | hgbot | Resolution | open => fixed | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2014-01-08 08:26 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/46ec5ec2839da79ae27a5225c105c85ecde1cf6a [^] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2014-01-17 15:49 | hudsonbot | Checkin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2014-01-17 15:49 | hudsonbot | Note Added: 0063481 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2014-01-20 06:25 | shankarb | Note Added: 0063521 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2014-01-20 06:25 | shankarb | Status | resolved => closed | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2014-04-22 08:37 | alostale | Relationship added | related to 0026317 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2014-05-12 12:38 | guillermogil | Relationship added | related to 0026505 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2014-11-05 10:15 | alostale | Relationship added | causes 0028085 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2014-12-24 11:51 | AugustoMauch | Relationship added | related to 0028483 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2015-03-26 14:54 | alostale | Relationship added | causes 0029385 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||