diff options
author | alecpl <alec@alec.pl> | 2011-02-23 08:13:02 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-02-23 08:13:02 +0000 |
commit | 3a5476d150419b46847dd922935f368c969519c1 (patch) | |
tree | 145ed6817352cb843c1ea7467eed24e81091418f /SQL/sqlite.initial.sql | |
parent | 5744bfa54de0baacbf788bc30aacce3cd1089b9c (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/sqlite.initial.sql')
-rw-r--r-- | SQL/sqlite.initial.sql | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/SQL/sqlite.initial.sql b/SQL/sqlite.initial.sql index 3aacccb95..d2885e968 100644 --- a/SQL/sqlite.initial.sql +++ b/SQL/sqlite.initial.sql @@ -56,6 +56,8 @@ CREATE TABLE contactgroupmembers ( PRIMARY KEY (contactgroup_id, contact_id) ); +CREATE INDEX ix_contactgroupmembers_contact_id ON contactgroupmembers (contact_id); + -- -------------------------------------------------------- |