From 81fa515881e42afe55379befa4e7d93313c90891 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 12 Nov 2009 11:08:43 -0800 Subject: Fix index on notice for efficient querying of notice(s) by order for a profile. Should resolve performance problem with Profile::getCurrentNotice() --- db/08to09.sql | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'db/08to09.sql') diff --git a/db/08to09.sql b/db/08to09.sql index 1d37a759d..028fe56a4 100644 --- a/db/08to09.sql +++ b/db/08to09.sql @@ -51,3 +51,7 @@ alter table subscription add index subscription_subscriber_idx (subscriber,created), drop index subscription_subscribed_idx, add index subscription_subscribed_idx (subscribed,created); + +alter table notice + drop index notice_profile_id_idx, + add index notice_profile_id_idx (profile_id,created,id); -- cgit v1.2.3-54-g00ecf