aboutsummaryrefslogtreecommitdiffstats
path: root/install/schema_mysql.sql
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-26 19:55:52 -0700
committerfriendica <info@friendica.com>2015-03-26 19:55:52 -0700
commit0bb89778d382fc5758354c6986130ce1ddba7d4c (patch)
tree8c321117f634f883a46e5848f88ba3540817f538 /install/schema_mysql.sql
parentfe2d5969d26c0506349b4f7d2ad54f820424f063 (diff)
downloadvolse-hubzilla-0bb89778d382fc5758354c6986130ce1ddba7d4c.tar.gz
volse-hubzilla-0bb89778d382fc5758354c6986130ce1ddba7d4c.tar.bz2
volse-hubzilla-0bb89778d382fc5758354c6986130ce1ddba7d4c.zip
add channel_lastpost timestamp to help optimise some outrageously expensive queries.
Diffstat (limited to 'install/schema_mysql.sql')
-rw-r--r--install/schema_mysql.sql2
1 files changed, 2 insertions, 0 deletions
diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql
index b3f992500..c2cefd07d 100644
--- a/install/schema_mysql.sql
+++ b/install/schema_mysql.sql
@@ -219,6 +219,7 @@ CREATE TABLE IF NOT EXISTS `channel` (
`channel_notifyflags` int(10) unsigned NOT NULL DEFAULT '65535',
`channel_pageflags` int(10) unsigned NOT NULL DEFAULT '0',
`channel_dirdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `channel_lastpost` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`channel_deleted` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`channel_max_anon_mail` int(10) unsigned NOT NULL DEFAULT '10',
`channel_max_friend_req` int(10) unsigned NOT NULL DEFAULT '10',
@@ -282,6 +283,7 @@ CREATE TABLE IF NOT EXISTS `channel` (
KEY `channel_deleted` (`channel_deleted`),
KEY `channel_a_republish` (`channel_a_republish`),
KEY `channel_dirdate` (`channel_dirdate`),
+ KEY `channel_lastpost` (`channel_lastpost`),
KEY `channel_w_like` (`channel_w_like`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;