From 1f379f60abbfdc122347115ab6f783e5d3703c7c Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Mon, 27 Jan 2014 17:11:23 +0100 Subject: [PATCH] Added indexes to category table --- install/thelia.sql | 4 +++- local/config/schema.xml | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/install/thelia.sql b/install/thelia.sql index d5b84f368..aa9a79d27 100644 --- a/install/thelia.sql +++ b/install/thelia.sql @@ -20,7 +20,9 @@ CREATE TABLE `category` `version` INTEGER DEFAULT 0, `version_created_at` DATETIME, `version_created_by` VARCHAR(100), - PRIMARY KEY (`id`) + PRIMARY KEY (`id`), + INDEX `idx_parent` (`parent`), + INDEX `idx_parent_position` (`parent`, `position`) ) ENGINE=InnoDB; -- --------------------------------------------------------------------- diff --git a/local/config/schema.xml b/local/config/schema.xml index 86a189bfe..a9013fa88 100644 --- a/local/config/schema.xml +++ b/local/config/schema.xml @@ -12,6 +12,13 @@ + + + + + + +