Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024694Openbravo ERPA. Platformpublic2013-09-04 17:572013-09-17 19:02
egoitz 
shankarb 
urgentmajorhave not tried
closedfixed 
5
 
3.0MP27 
AugustoMauch
Core
No
0024694: After adding product characteristics to core the product simple selector has bad performance.
A now join has been included on the productsimple selector.

left join p.genericProduct gp

This makes the query slow with big amount of data
On a product with thousendof products with arrond 30 price lists the selector takes 2 seconds to show data.
Create the following index

CREATE INDEX m_product_gen__prod
  ON m_product
  USING btree
  (Generic_Product_ID COLLATE pg_catalog."default" );


analyze m_product;
Performance
Issue History
2013-09-04 17:57egoitzNew Issue
2013-09-04 17:57egoitzAssigned To => AugustoMauch
2013-09-04 17:57egoitzModules => Core
2013-09-04 17:57egoitzTriggers an Emergency Pack => No
2013-09-04 17:57egoitzTag Attached: Performance
2013-09-05 08:41shankarbAssigned ToAugustoMauch => shankarb
2013-09-05 08:58shankarbReview Assigned To => AugustoMauch
2013-09-05 08:58shankarbIssue Monitored: AugustoMauch
2013-09-05 09:00hgbotCheckin
2013-09-05 09:00hgbotNote Added: 0060925
2013-09-05 09:00hgbotStatusnew => resolved
2013-09-05 09:00hgbotResolutionopen => fixed
2013-09-05 09:00hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e22dd1199630733aa54d13e028c028070bb07479 [^]
2013-09-10 17:37AugustoMauchNote Added: 0061056
2013-09-10 17:37AugustoMauchStatusresolved => closed
2013-09-10 17:37AugustoMauchFixed in Version => 3.0MP27
2013-09-17 19:02hudsonbotCheckin
2013-09-17 19:02hudsonbotNote Added: 0061219

Notes
(0060925)
hgbot   
2013-09-05 09:00   
Repository: erp/devel/pi
Changeset: e22dd1199630733aa54d13e028c028070bb07479
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Thu Sep 05 12:28:10 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/e22dd1199630733aa54d13e028c028070bb07479 [^]

Fixes Issue 0024694: Added index to m_product to improve simple product selector performance

Added index m_product_gen_prod for m_product table.

---
M src-db/database/model/tables/M_PRODUCT.xml
---
(0061056)
AugustoMauch   
2013-09-10 17:37   
Code reviewed and verified in pi@e22dd1199630733aa54d13e028c028070bb07479
(0061219)
hudsonbot   
2013-09-17 19:02   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/1c53d622fc50 [^]

Maturity status: Test