From 23b76563dcc2542cff9f447e809462472cfccd88 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 29 Sep 2009 07:59:25 +0000
Subject: - use better index for contacts table

---
 SQL/postgres.update.sql | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'SQL/postgres.update.sql')

diff --git a/SQL/postgres.update.sql b/SQL/postgres.update.sql
index fe88a6dcc..e343dd440 100644
--- a/SQL/postgres.update.sql
+++ b/SQL/postgres.update.sql
@@ -41,3 +41,5 @@ ALTER TABLE messages ALTER del TYPE smallint;
 
 CREATE INDEX messages_index_idx ON messages (user_id, cache_key, idx);
 TRUNCATE messages;
+DROP INDEX contacts_user_id_idx;
+CREATE INDEX contacts_user_id_idx ON contacts (user_id, email);
-- 
cgit v1.2.3

