From 44f1eeed563494fe7946373872a457ccd2c17ab4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 11 Jul 2012 12:52:59 +0400 Subject: [PATCH] add ttrss_feeds_cat_id_idx --- schema/ttrss_schema_mysql.sql | 3 +++ schema/ttrss_schema_pgsql.sql | 1 + 2 files changed, 4 insertions(+) diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index cbbbc64a..5e6ca609 100644 --- a/schema/ttrss_schema_mysql.sql +++ b/schema/ttrss_schema_mysql.sql @@ -127,6 +127,9 @@ create table ttrss_feeds (id integer not null auto_increment primary key, index(parent_feed), foreign key (parent_feed) references ttrss_feeds(id) ON DELETE SET NULL) ENGINE=InnoDB DEFAULT CHARSET=UTF8; +create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid); +create index ttrss_feeds_cat_id_idx on ttrss_feeds(cat_id); + insert into ttrss_feeds (owner_uid, title, feed_url) values (1, 'Tiny Tiny RSS: New Releases', 'http://tt-rss.org/releases.rss'); diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index 74faa1a0..3e0d800c 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -86,6 +86,7 @@ create table ttrss_feeds (id serial not null primary key, auth_pass_encrypted boolean not null default false); create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid); +create index ttrss_feeds_cat_id_idx on ttrss_feeds(cat_id); insert into ttrss_feeds (owner_uid, title, feed_url) values (1, 'Tiny Tiny RSS: New Releases', 'http://tt-rss.org/releases.rss'); -- 2.39.5