Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035217Retail ModulesWeb POSpublic2017-02-10 09:292017-02-20 11:51
aaroncalero 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR17Q2 
marvintm
No
0035217: There is no index by m_product_category_id in the obretco_productcategory table
The table obretco_productcategory, which holds the product categories used by each of the assortments, does not have an index by its m_product_category_id column.

If the obretco_productcategory table has lots of records (e.g. 300 assortments with 1500 categories on each of them), one of the queries to retrieve product categories takes up to 9 seconds.
-
Attached diff with the missing index
No tags attached.
diff Issue35217.diff (741) 2017-02-10 10:04
https://issues.openbravo.com/file_download.php?file_id=10433&type=bug
Issue History
2017-02-10 09:29aaroncaleroNew Issue
2017-02-10 09:29aaroncaleroAssigned To => Retail
2017-02-10 09:29aaroncaleroTriggers an Emergency Pack => No
2017-02-10 10:03aaroncaleroResolution time => 1487890800
2017-02-10 10:04aaroncaleroFile Added: Issue35217.diff
2017-02-10 10:04aaroncaleroProposed Solution updated
2017-02-13 09:35ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2017-02-13 09:35ranjith_qualiantech_comStatusnew => scheduled
2017-02-17 07:42hgbotCheckin
2017-02-17 07:42hgbotNote Added: 0094432
2017-02-17 07:42hgbotStatusscheduled => resolved
2017-02-17 07:42hgbotResolutionopen => fixed
2017-02-17 07:42hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.config/rev/0e920917f139b032b8e082f710b2d0b9adb0446a [^]
2017-02-20 11:51marvintmReview Assigned To => marvintm
2017-02-20 11:51marvintmStatusresolved => closed
2017-02-20 11:51marvintmFixed in Version => RR17Q2

Notes
(0094432)
hgbot   
2017-02-17 07:42   
Repository: erp/pmods/org.openbravo.retail.config
Changeset: 0e920917f139b032b8e082f710b2d0b9adb0446a
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Feb 17 12:12:23 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.config/rev/0e920917f139b032b8e082f710b2d0b9adb0446a [^]

Fixed issue 35217 : Added index for Assortment Product Category Table

---
M src-db/database/model/tables/OBRETCO_PRODUCTCATEGORY.xml
---