mirror of
https://github.com/documize/community.git
synced 2025-07-21 14:19:43 +02:00
Switch search to InnoDB
Better, faster searching
This commit is contained in:
parent
08557c369c
commit
7b619101f1
2 changed files with 7 additions and 1 deletions
|
@ -44,7 +44,6 @@ CREATE TABLE IF NOT EXISTS `search` (
|
||||||
FULLTEXT INDEX `idx_search_content` (`content`))
|
FULLTEXT INDEX `idx_search_content` (`content`))
|
||||||
DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
|
DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
|
||||||
ENGINE = MyISAM;
|
ENGINE = MyISAM;
|
||||||
-- FULLTEXT search requires MyISAM and NOT InnoDB
|
|
||||||
|
|
||||||
-- migrate page content
|
-- migrate page content
|
||||||
INSERT INTO search (orgid, documentid, itemid, itemtype, content) SELECT orgid, documentid, id AS itemid, 'page' AS itemtype, TRIM(body) AS content FROM search_old;
|
INSERT INTO search (orgid, documentid, itemid, itemtype, content) SELECT orgid, documentid, id AS itemid, 'page' AS itemtype, TRIM(body) AS content FROM search_old;
|
||||||
|
|
7
core/database/scripts/autobuild/db_00023.sql
Normal file
7
core/database/scripts/autobuild/db_00023.sql
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/* community edition */
|
||||||
|
|
||||||
|
-- improved search table
|
||||||
|
ALTER TABLE search ENGINE = InnoDB;
|
||||||
|
OPTIMIZE TABLE search;
|
||||||
|
|
||||||
|
-- deprecations
|
Loading…
Add table
Add a link
Reference in a new issue