From 3d601d267dfb0ffca32ad953f36944b83910d907 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 07 Sep 2009 08:40:05 -0400
Subject: [PATCH] - added index in messages table

---
 SQL/postgres.initial.sql |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/SQL/postgres.initial.sql b/SQL/postgres.initial.sql
index eb53332..f07ca30 100644
--- a/SQL/postgres.initial.sql
+++ b/SQL/postgres.initial.sql
@@ -1,3 +1,5 @@
+-- RoundCube Webmail initial database structure
+
 --
 -- Sequence "user_ids"
 -- Name: user_ids; Type: SEQUENCE; Schema: public; Owner: postgres
@@ -172,4 +174,5 @@
 );
 
 ALTER TABLE messages ADD UNIQUE (user_id, cache_key, uid);
+CREATE INDEX messages_index_idx ON messages (user_id, cache_key, idx);
 CREATE INDEX messages_created_idx ON messages (created);

--
Gitblit v1.9.1