Openbravo Issue Tracking System - Openbravo ERP  | 
| View Issue Details | 
  | 
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0032949 | Openbravo ERP | A. Platform | public | 2016-05-13 10:49 | 2016-06-17 19:38 | 
  | 
| Reporter | malsasua |   | 
| Assigned To | AtulOpenbravo |   | 
| Priority | high | Severity | major | Reproducibility | always | 
| Status | closed | Resolution | fixed |   | 
| Platform |  | OS | 20 | OS Version | Community Appliance | 
| Product Version | 3.0PR15Q3.5 |   | 
| Target Version |  | Fixed in Version | 3.0PR16Q3 |   | 
| Merge Request Status |  | 
| Review Assigned To | aferraz | 
| OBNetwork customer | OBPS | 
| Web browser |  | 
| Modules | Core | 
| Support ticket | 41749 | 
| Regression level |  | 
| Regression date |  | 
| Regression introduced in release |  | 
| Regression introduced by commit |  | 
| Triggers an Emergency Pack | No | 
  | 
| Summary | 0032949: performance problem in  pick and execute of Return to Vendor: RFC/RTV HQL Pick / Edit Lines | 
| Description | with a big data, the pick & edit of return to vendor window, the results are not displayed. 
 
We have applied the configration 
  - Add restriction in "Product - Pick / Edit Lines - RFC/RTV HQL Pick / Edit Lines" field to "Allow filtering by FK identifier" No 
 
but the problem persist. | 
| Steps To Reproduce | . in a environment with big data (# records): 
- m_inoutline: 2.583.661  
- m_inout: 647.101 
- c_bpartner: 504 
- m_product: 5.500 
 
. access to "Return to vendor" window, and click in pick&Edit: 
never finished 
 
. to reproduce it, please, contact with MAL. A environment will be provided | 
| Proposed Solution |  | 
| Additional Information |  | 
| Tags | No tags attached. | 
| Relationships | | has duplicate  | defect  | 0033191 |   | closed  | Triage Finance  | Slow behaviour of Pick/Edit Lines on "Return to vendor" window  |  | related to  | defect  | 0034031 |   | closed  | AtulOpenbravo  | Return From Customer pick and edit is very slow  with big data  |  | related to  | defect  | 0035682 |   | closed  | markmm82  | Return From Customer pick and edit is very slow with big data  |  
  | 
| Attached Files |  | 
  | 
| Issue History | 
| Date Modified | Username | Field | Change | 
| 2016-05-13 10:49 | malsasua | New Issue |  | 
| 2016-05-13 10:49 | malsasua | Assigned To |  => platform | 
| 2016-05-13 10:49 | malsasua | OBNetwork customer |  => Yes | 
| 2016-05-13 10:49 | malsasua | Modules |  => Core | 
| 2016-05-13 10:49 | malsasua | Support ticket |  => 41749 | 
| 2016-05-13 10:49 | malsasua | Resolution time |  => 1464386400 | 
| 2016-05-13 10:49 | malsasua | Triggers an Emergency Pack |  => No | 
| 2016-05-13 10:50 | malsasua | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=12093#r12093 | 
| 2016-05-17 10:18 | alostale | Assigned To | platform => Triage Finance | 
| 2016-05-19 09:20 | aferraz | Assigned To | Triage Finance => AtulOpenbravo | 
| 2016-06-03 15:41 | hgbot | Checkin |  | 
| 2016-06-03 15:41 | hgbot | Note Added: 0086991 |  | 
| 2016-06-03 15:41 | hgbot | Status | new => resolved | 
| 2016-06-03 15:41 | hgbot | Resolution | open => fixed | 
| 2016-06-03 15:41 | hgbot | Fixed in SCM revision |  => http://code.openbravo.com/erp/devel/pi/rev/ef154325c6cf3d97d5fd08aaa5a50d496f3e5e0b [^] | 
| 2016-06-03 15:41 | hgbot | Checkin |  | 
| 2016-06-03 15:41 | hgbot | Note Added: 0086992 |  | 
| 2016-06-03 16:00 | aferraz | Review Assigned To |  => aferraz | 
| 2016-06-03 16:00 | aferraz | Note Added: 0086995 |  | 
| 2016-06-03 16:00 | aferraz | Status | resolved => closed | 
| 2016-06-03 16:00 | aferraz | Fixed in Version |  => 3.0PR16Q3 | 
| 2016-06-13 13:15 | aferraz | Relationship added | has duplicate 0033191 | 
| 2016-06-17 19:38 | hudsonbot | Checkin |  | 
| 2016-06-17 19:38 | hudsonbot | Note Added: 0087591 |  | 
| 2016-06-17 19:38 | hudsonbot | Checkin |  | 
| 2016-06-17 19:38 | hudsonbot | Note Added: 0087592 |  | 
| 2016-09-20 12:38 | malsasua | Relationship added | related to 0034031 | 
| 2017-04-04 12:26 | aferraz | Relationship added | related to 0035682 | 
	| 
		Notes	 | 
	
		 
	 | 
	
		
		
			| 
				(0086991)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2016-06-03 15:41   
							 | 
		 
		 
	 | 
	
		
		
			
				Repository: erp/devel/pi 
Changeset: ef154325c6cf3d97d5fd08aaa5a50d496f3e5e0b 
Author: Atul Gaware <atul.gaware <at> openbravo.com> 
Date: Wed Jun 01 18:31:57 2016 +0530 
URL: http://code.openbravo.com/erp/devel/pi/rev/ef154325c6cf3d97d5fd08aaa5a50d496f3e5e0b [^] 
 
Fixes issue 32949: Improve performance in Return to Vendor Pick and Execute 
 
In order to avoid unnecessary joins to M_InoutLine table, replace ol.goodsShipmentLine = iol with ol.goodsShipmentLine.id = iol. 
 
--- 
M src-db/database/sourcedata/AD_TABLE.xml 
M src/org/openbravo/common/datasource/ReturnToFromCustomerVendorHQLTransformer.java 
--- 
			 | 
		 
		 
	 | 
	
		 
	 | 
	
		
		
			| 
				(0086992)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2016-06-03 15:41   
							 | 
		 
		 
	 | 
	
		
		
			
				Repository: erp/devel/pi 
Changeset: f3f815904ffdd66f815aff52f517124413724a3d 
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com> 
Date: Fri Jun 03 15:32:03 2016 +0200 
URL: http://code.openbravo.com/erp/devel/pi/rev/f3f815904ffdd66f815aff52f517124413724a3d [^] 
 
Related to issue 32949: Code review improvements 
 
- Use inner join instead of left join between OrderLine and Order tables. 
- Avoid unnecessary join with Tax table. 
- Add index in M_MatchPO table to M_InoutLine_Id column. 
 
--- 
M src-db/database/model/tables/M_MATCHPO.xml 
M src-db/database/sourcedata/AD_TABLE.xml 
M src/org/openbravo/common/datasource/ReturnToFromCustomerVendorHQLTransformer.java 
--- 
			 | 
		 
		 
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
	 |