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.initial.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/SQL/sqlite.initial.sql b/SQL/sqlite.initial.sql
index 2395cfd49..cccad7a20 100644
--- a/SQL/sqlite.initial.sql
+++ b/SQL/sqlite.initial.sql
@@ -34,7 +34,7 @@ CREATE TABLE contacts (
   vcard text NOT NULL default ''
 );
 
-CREATE INDEX ix_contacts_user_id ON contacts(user_id);
+CREATE INDEX ix_contacts_user_id ON contacts(user_id, email);
 
 -- --------------------------------------------------------
 
-- 
cgit v1.2.3

