summaryrefslogtreecommitdiff
path: root/schema/ttrss_schema_pgsql.sql
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-07-11 12:39:43 +0400
committerAndrew Dolgov <[email protected]>2012-07-11 12:39:43 +0400
commit2ced2bb8048012cb6290f77921e0f90a9419f59d (patch)
tree80ff0fb8a5b24f7c1314d10f7f3e37c7b11cb274 /schema/ttrss_schema_pgsql.sql
parent04994fdb00033bf2ae3b840accd8a556e84f08a9 (diff)
add some more indexes
Diffstat (limited to 'schema/ttrss_schema_pgsql.sql')
-rw-r--r--schema/ttrss_schema_pgsql.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql
index 35b5c440b..74faa1a06 100644
--- a/schema/ttrss_schema_pgsql.sql
+++ b/schema/ttrss_schema_pgsql.sql
@@ -267,6 +267,8 @@ create table ttrss_prefs (pref_name varchar(250) not null primary key,
access_level integer not null default 0,
def_value text not null);
+create index ttrss_prefs_pref_name_idx on ttrss_prefs(pref_name);
+
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('PURGE_OLD_DAYS', 3, '60', 'Purge old posts after this number of days (0 - disables)',1);
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('DEFAULT_UPDATE_INTERVAL', 3, '30', 'Default interval between feed updates',1);
@@ -366,6 +368,7 @@ create table ttrss_user_prefs (
value text not null);
create index ttrss_user_prefs_owner_uid_index on ttrss_user_prefs(owner_uid);
+create index ttrss_user_prefs_pref_name_idx on ttrss_user_prefs(pref_name);
-- create index ttrss_user_prefs_value_index on ttrss_user_prefs(value);
create table ttrss_sessions (id varchar(250) unique not null primary key,