summaryrefslogtreecommitdiff
path: root/SQL/postgres.initial.sql
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-02-23 08:13:02 +0000
committeralecpl <alec@alec.pl>2011-02-23 08:13:02 +0000
commit3a5476d150419b46847dd922935f368c969519c1 (patch)
tree145ed6817352cb843c1ea7467eed24e81091418f /SQL/postgres.initial.sql
parent5744bfa54de0baacbf788bc30aacce3cd1089b9c (diff)
- Add index on contactgroupmembers.contact_id column.
Improves performance and fixes problem with contactgroupmembers table creation on MySQL 4.x
Diffstat (limited to 'SQL/postgres.initial.sql')
-rw-r--r--SQL/postgres.initial.sql2
1 files changed, 2 insertions, 0 deletions
diff --git a/SQL/postgres.initial.sql b/SQL/postgres.initial.sql
index f52ebd572..b273bcb0b 100644
--- a/SQL/postgres.initial.sql
+++ b/SQL/postgres.initial.sql
@@ -157,6 +157,8 @@ CREATE TABLE contactgroupmembers (
PRIMARY KEY (contactgroup_id, contact_id)
);
+CREATE INDEX contactgroupmembers_contact_id_idx ON contactgroupmembers (contact_id);
+
--
-- Sequence "cache_ids"
-- Name: cache_ids; Type: SEQUENCE; Schema: public; Owner: postgres