New field "network" in item table to speed up the system.
This commit is contained in:
parent
5b6e16d193
commit
0ffeb4cf92
5 changed files with 20 additions and 7 deletions
|
|
@ -562,6 +562,7 @@ CREATE TABLE IF NOT EXISTS `item` (
|
|||
`forum_mode` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`mention` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`last-child` tinyint(1) unsigned NOT NULL DEFAULT '1',
|
||||
`network` char(32) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `uri` (`uri`),
|
||||
KEY `uid` (`uid`),
|
||||
|
|
@ -593,6 +594,7 @@ CREATE TABLE IF NOT EXISTS `item` (
|
|||
KEY `mention` (`mention`),
|
||||
KEY `resource-id` (`resource-id`),
|
||||
KEY `event_id` (`event-id`),
|
||||
KEY `network` (`network`),
|
||||
FULLTEXT KEY `title` (`title`),
|
||||
FULLTEXT KEY `body` (`body`),
|
||||
FULLTEXT KEY `allow_cid` (`allow_cid`),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue