Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0025159 | Openbravo ERP | A. Platform | public | 2013-11-14 14:56 | 2013-12-18 11:44 | |||||||
Reporter | jonalegriaesarte | |||||||||||
Assigned To | shankarb | |||||||||||
Priority | urgent | 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 | 24688 | |||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0025159: Bad performance executing openView function | |||||||||||
Description | When executing openView function: OB.Utilities.openView('184', '296', 'Goods Receipt', '95F18AE75A0C4717AFA7F28F3DF7587E'); The following extra query is executed (that is not the normal grid query, because is selecting only the m_inout_id): select materialmg0_.M_InOut_ID as col_0_0_ from M_InOut materialmg0_ cross join C_DocType documentty1_ where materialmg0_.C_DocType_ID=documentty1_.C_DocType_ID and (materialmg0_.MovementType in ('V-' , 'V+')) and materialmg0_.Islogistic='N' and documentty1_.IsReturn='N' and (materialmg 0_.AD_Org_ID in ('E443A31992CB4635AFCAEABE7183CE85' , '0' , 'DC206C91AA6A4897B44DA897936E0EC3' , '7BABA5FF80494CAFA54DEBD22EC46F01' , 'BAE22373FEBE4CCCA24517E23F0C8A48' , '19404EA D144C49A0AF37D54377CF452D' , 'B843C30461EA4501935CB1D125C9C25A' , '2E60544D37534C0B89E765FE29BC0B43')) and (materialmg0_.AD_Client_ID in ('23C59575B9CF467C9620760EB255B389' , '0') ) order by materialmg0_.DocumentNo, materialmg0_.M_InOut_ID This query does not have any limit. That's why it is causing bad performance. | |||||||||||
Steps To Reproduce | When executing openView function: OB.Utilities.openView('184', '296', 'Goods Receipt', '95F18AE75A0C4717AFA7F28F3DF7587E'); The following extra query is executed (that is not the normal grid query, because is selecting only the m_inout_id): select materialmg0_.M_InOut_ID as col_0_0_ from M_InOut materialmg0_ cross join C_DocType documentty1_ where materialmg0_.C_DocType_ID=documentty1_.C_DocType_ID and (materialmg0_.MovementType in ('V-' , 'V+')) and materialmg0_.Islogistic='N' and documentty1_.IsReturn='N' and (materialmg 0_.AD_Org_ID in ('E443A31992CB4635AFCAEABE7183CE85' , '0' , 'DC206C91AA6A4897B44DA897936E0EC3' , '7BABA5FF80494CAFA54DEBD22EC46F01' , 'BAE22373FEBE4CCCA24517E23F0C8A48' , '19404EA D144C49A0AF37D54377CF452D' , 'B843C30461EA4501935CB1D125C9C25A' , '2E60544D37534C0B89E765FE29BC0B43')) and (materialmg0_.AD_Client_ID in ('23C59575B9CF467C9620760EB255B389' , '0') ) order by materialmg0_.DocumentNo, materialmg0_.M_InOut_ID This query does not have any limit. That's why it is causing bad performance. | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | Performance | |||||||||||
Relationships |
| |||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=6533&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2013-11-14 14:56 | jonalegriaesarte | New Issue | ||||||||||
2013-11-14 14:56 | jonalegriaesarte | Assigned To | => AugustoMauch | |||||||||
2013-11-14 14:56 | jonalegriaesarte | Modules | => Core | |||||||||
2013-11-14 14:56 | jonalegriaesarte | OBNetwork customer | => Yes | |||||||||
2013-11-14 14:56 | jonalegriaesarte | Support ticket | => 24688 | |||||||||
2013-11-14 14:56 | jonalegriaesarte | Triggers an Emergency Pack | => No | |||||||||
2013-11-14 14:56 | 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 0025161 | |||||||||
2013-11-27 06:11 | shankarb | File Added: Fix25161-25159-25136.diff | ||||||||||
2013-11-27 10:02 | shankarb | Note Added: 0062396 | ||||||||||
2013-11-27 11:32 | alostale | Note Added: 0062402 | ||||||||||
2013-11-27 11:32 | alostale | Target Version | 3.0MP30 => 3.0MP31 | |||||||||
2013-11-28 10:15 | shankarb | File Deleted: Fix25161-25159-25136.diff | ||||||||||
2013-11-28 10:15 | shankarb | File Added: Fix25161-25159-25136.diff | ||||||||||
2013-12-05 08:10 | shankarb | Issue Monitored: AugustoMauch | ||||||||||
2013-12-05 08:11 | shankarb | Review Assigned To | => AugustoMauch | |||||||||
2013-12-05 08:12 | shankarb | Status | new => scheduled | |||||||||
2013-12-05 08:12 | shankarb | fix_in_branch | => pi | |||||||||
2013-12-05 08:13 | shankarb | Note Added: 0062545 | ||||||||||
2013-12-05 08:13 | shankarb | Status | scheduled => resolved | |||||||||
2013-12-05 08:13 | shankarb | Fixed in Version | => pi | |||||||||
2013-12-05 08:13 | shankarb | Fixed in SCM revision | => https://code.openbravo.com/erp/devel/pi/rev/0ca986e840a2 [^] | |||||||||
2013-12-05 08:13 | shankarb | Resolution | open => fixed | |||||||||
2013-12-18 11:44 | AugustoMauch | Note Added: 0062773 | ||||||||||
2013-12-18 11:44 | AugustoMauch | Status | resolved => closed | |||||||||
2013-12-18 11:44 | AugustoMauch | Fixed in Version | pi => 3.0MP31 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|