Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0025161 | Openbravo ERP | A. Platform | public | 2013-11-15 01:29 | 2013-12-18 11:44 | ||||||||||||||
Reporter | jonalegriaesarte | ||||||||||||||||||
Assigned To | shankarb | ||||||||||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | 3.0MP31 | Fixed in Version | 3.0MP31 | ||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | AugustoMauch | ||||||||||||||||||
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 | 0025161: Alert Management window's link's bad performance | ||||||||||||||||||
Description | There is an issue with the Alert Management window where the link to a specific record would cause an expensive query to fire. For example, if you had an alert that referenced a specific sales order and you clicked on the link to navigate to that order, then the following query would be executed twice and the query does not have any limit: select order0_.C_Order_ID as col_0_0_ from C_Order order0_, C_DocType documentty1_ where order0_.C_DocTypeTarget_ID=documentty1_.C_DocType_ID and order0_.IsSOTrx='Y' and documentty1_.IsReturn='N' and (documentty1_.DocSubTypeSO not like 'OB') and (order0_.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 (order0_.AD_Client_ID in ('1969' , '0')) order by order0_.DocumentNo, order0_.C_Order_ID The function that is used to open the window is : openDirectTab So, all the function to open tabs and windows should be checked and fixed in order to improve the performance. | ||||||||||||||||||
Steps To Reproduce | There is an issue with the Alert Management window where the link to a specific record would cause an expensive query to fire. For example, if you had an alert that referenced a specific sales order and you clicked on the link to navigate to that order, then the following query would be executed twice and the query does not have any limit: select order0_.C_Order_ID as col_0_0_ from C_Order order0_, C_DocType documentty1_ where order0_.C_DocTypeTarget_ID=documentty1_.C_DocType_ID and order0_.IsSOTrx='Y' and documentty1_.IsReturn='N' and (documentty1_.DocSubTypeSO not like 'OB') and (order0_.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 (order0_.AD_Client_ID in ('1969' , '0')) order by order0_.DocumentNo, order0_.C_Order_ID The function that is used to open the window is : openDirectTab So, all the function to open tabs and windows should be checked and fixed in order to improve the performance. | ||||||||||||||||||
Proposed Solution | |||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | Performance | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=6532&type=bug | ||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2013-11-15 01:29 | jonalegriaesarte | New Issue | |||||||||||||||||
2013-11-15 01:29 | jonalegriaesarte | Assigned To | => AugustoMauch | ||||||||||||||||
2013-11-15 01:29 | jonalegriaesarte | Modules | => Core | ||||||||||||||||
2013-11-15 01:29 | jonalegriaesarte | OBNetwork customer | => Yes | ||||||||||||||||
2013-11-15 01:29 | jonalegriaesarte | Triggers an Emergency Pack | => No | ||||||||||||||||
2013-11-15 01:30 | jonalegriaesarte | Tag Attached: Performance | |||||||||||||||||
2013-11-19 17:44 | alostale | Assigned To | AugustoMauch => shankarb | ||||||||||||||||
2013-11-21 16:19 | jonalegriaesarte | Target Version | 3.0MP31 => 3.0MP30 | ||||||||||||||||
2013-11-22 07:25 | alostale | Relationship added | related to 0025159 | ||||||||||||||||
2013-11-26 11:53 | alostale | Relationship added | related to 0025136 | ||||||||||||||||
2013-11-27 06:11 | shankarb | File Added: Fix25161-25159-25136.diff | |||||||||||||||||
2013-11-27 09:57 | shankarb | Note Added: 0062394 | |||||||||||||||||
2013-11-27 11:32 | alostale | Note Added: 0062401 | |||||||||||||||||
2013-11-27 11:32 | alostale | Target Version | 3.0MP30 => 3.0MP31 | ||||||||||||||||
2013-11-28 10:14 | shankarb | File Deleted: Fix25161-25159-25136.diff | |||||||||||||||||
2013-11-28 10:14 | shankarb | File Added: Fix25161-25159-25136.diff | |||||||||||||||||
2013-12-05 08:03 | shankarb | Issue Monitored: AugustoMauch | |||||||||||||||||
2013-12-05 08:07 | shankarb | Review Assigned To | => AugustoMauch | ||||||||||||||||
2013-12-05 08:11 | hgbot | Checkin | |||||||||||||||||
2013-12-05 08:11 | hgbot | Note Added: 0062544 | |||||||||||||||||
2013-12-05 08:11 | hgbot | Status | new => resolved | ||||||||||||||||
2013-12-05 08:11 | hgbot | Resolution | open => fixed | ||||||||||||||||
2013-12-05 08:11 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/0ca986e840a24c89b4b5de3af108ac74f90deabf [^] | ||||||||||||||||
2013-12-18 11:44 | AugustoMauch | Note Added: 0062772 | |||||||||||||||||
2013-12-18 11:44 | AugustoMauch | Status | resolved => closed | ||||||||||||||||
2013-12-18 11:44 | AugustoMauch | Fixed in Version | => 3.0MP31 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|