From 0241b0d4ee92c9902333c09f820f701da76d5482 Mon Sep 17 00:00:00 2001 From: wdammak <26695620+wdammak@users.noreply.github.com> Date: Sun, 10 Mar 2019 03:05:15 +0100 Subject: [PATCH] Missing index to improve the performance of product/variants display https://github.com/Dolibarr/dolibarr/issues/10787 --- htdocs/install/mysql/migration/9.0.0-10.0.0.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/install/mysql/migration/9.0.0-10.0.0.sql b/htdocs/install/mysql/migration/9.0.0-10.0.0.sql index f877c193750..c1ba9fbe81f 100644 --- a/htdocs/install/mysql/migration/9.0.0-10.0.0.sql +++ b/htdocs/install/mysql/migration/9.0.0-10.0.0.sql @@ -242,3 +242,5 @@ ALTER TABLE llx_facturedet_rec ADD COLUMN fk_user_modif integer; ALTER TABLE llx_expensereport_det MODIFY COLUMN value_unit double(24,8) NOT NULL; ALTER TABLE llx_expensereport_det ADD COLUMN subprice double(24,8) DEFAULT 0 NOT NULL after qty; +ALTER TABLE `llx_product_attribute_combination` ADD INDEX(` fk_product_parent `); +ALTER TABLE `llx_product_attribute_combination` ADD INDEX(` fk_product_child `);