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/sqlite.update.sql | 2 ++
 1 file changed, 2 insertions(+)

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

diff --git a/SQL/sqlite.update.sql b/SQL/sqlite.update.sql
index 4b1b10b7f..09af76fae 100644
--- a/SQL/sqlite.update.sql
+++ b/SQL/sqlite.update.sql
@@ -41,3 +41,5 @@ DROP INDEX ix_messages_user_cache_uid;
 CREATE UNIQUE INDEX ix_messages_user_cache_uid ON messages (user_id,cache_key,uid);
 CREATE INDEX ix_messages_index ON messages (user_id,cache_key,idx);
 TRUNCATE messages;
+DROP INDEX ix_contacts_user_id;
+CREATE INDEX ix_contacts_user_id ON contacts(user_id, email);
-- 
cgit v1.2.3

