diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-02-20 10:26:32 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-02-20 10:26:32 +0100 |
commit | 6ef0116f091a45fa0ef96c67becd55b12e946cdd (patch) | |
tree | 5e6a59d2357acc0688f5d4f57fb09e957f30e993 /install | |
parent | 76b5c686460ed5fe4c93dc0e268d99dc9eb988b6 (diff) | |
download | volse-hubzilla-6ef0116f091a45fa0ef96c67becd55b12e946cdd.tar.gz volse-hubzilla-6ef0116f091a45fa0ef96c67becd55b12e946cdd.tar.bz2 volse-hubzilla-6ef0116f091a45fa0ef96c67becd55b12e946cdd.zip |
more index finetuning to fix the expire query
Diffstat (limited to 'install')
-rw-r--r-- | install/schema_mysql.sql | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql index 8d1c8d648..36cd2539b 100644 --- a/install/schema_mysql.sql +++ b/install/schema_mysql.sql @@ -654,6 +654,9 @@ CREATE TABLE IF NOT EXISTS `item` ( KEY `uid_item_type` (`uid`, `item_type`), KEY `uid_item_thread_top` (`uid`, `item_thread_top`), KEY `uid_item_blocked` (`uid`, `item_blocked`), + KEY `uid_item_wall` (`uid`, `item_wall`), + KEY `uid_item_starred` (`uid`, `item_starred`), + KEY `uid_item_retained` (`uid`, `item_retained`), KEY `aid` (`aid`), KEY `owner_xchan` (`owner_xchan`), KEY `author_xchan` (`author_xchan`), @@ -679,9 +682,7 @@ CREATE TABLE IF NOT EXISTS `item` ( KEY `changed` (`changed`), KEY `item_origin` (`item_origin`), KEY `item_unseen` (`item_unseen`), - KEY `item_starred` (`item_starred`), KEY `item_uplink` (`item_uplink`), - KEY `item_wall` (`item_wall`), KEY `item_notshown` (`item_notshown`), KEY `item_nsfw` (`item_nsfw`), KEY `item_relay` (`item_relay`), @@ -689,7 +690,6 @@ CREATE TABLE IF NOT EXISTS `item` ( KEY `item_nocomment` (`item_nocomment`), KEY `item_obscured` (`item_obscured`), KEY `item_verified` (`item_verified`), - KEY `item_retained` (`item_retained`), KEY `item_rss` (`item_rss`), KEY `item_consensus` (`item_consensus`), KEY `item_deleted_pending_remove_changed` (`item_deleted`, `item_pending_remove`, `changed`) |