Speeding up the gcontact search

This commit is contained in:
Michael Vogel 2016-04-17 13:46:49 +02:00 committed by Roland Haeder
parent 1e933744da
commit 5370b3f76d
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
5 changed files with 16 additions and 8 deletions

View file

@ -1,6 +1,6 @@
-- ------------------------------------------
-- Friendica 3.5-dev (Asparagus)
-- DB_UPDATE_VERSION 1194
-- DB_UPDATE_VERSION 1195
-- ------------------------------------------
@ -171,7 +171,8 @@ CREATE TABLE IF NOT EXISTS `contact` (
`fetch_further_information` tinyint(1) NOT NULL DEFAULT 0,
`ffi_keyword_blacklist` mediumtext NOT NULL,
PRIMARY KEY(`id`),
INDEX `uid` (`uid`)
INDEX `uid` (`uid`),
INDEX `nurl` (`nurl`)
) DEFAULT CHARSET=utf8;
--
@ -333,7 +334,9 @@ CREATE TABLE IF NOT EXISTS `gcontact` (
`generation` tinyint(3) NOT NULL DEFAULT 0,
`server_url` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY(`id`),
INDEX `nurl` (`nurl`),
INDEX `name` (`name`),
INDEX `nick` (`nick`),
INDEX `addr` (`addr`),
INDEX `updated` (`updated`)
) DEFAULT CHARSET=utf8;