mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 19:32:40 +01:00
959bb16d0f
Summary: Ref T10246. Build an ngram index for Almanac services, and use it to support improved search. Test Plan: {F1121725} Reviewers: chad Reviewed By: chad Maniphest Tasks: T10246 Differential Revision: https://secure.phabricator.com/D15321
7 lines
311 B
SQL
7 lines
311 B
SQL
CREATE TABLE {$NAMESPACE}_almanac.almanac_servicename_ngrams (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
objectID INT UNSIGNED NOT NULL,
|
|
ngram CHAR(3) NOT NULL COLLATE {$COLLATE_TEXT},
|
|
KEY `key_object` (objectID),
|
|
KEY `key_ngram` (ngram, objectID)
|
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|