Page MenuHomePhabricator

D18696.id44886.diff
No OneTemporary

D18696.id44886.diff

diff --git a/src/applications/config/schema/PhabricatorConfigSchemaSpec.php b/src/applications/config/schema/PhabricatorConfigSchemaSpec.php
--- a/src/applications/config/schema/PhabricatorConfigSchemaSpec.php
+++ b/src/applications/config/schema/PhabricatorConfigSchemaSpec.php
@@ -81,12 +81,15 @@
$engine->getNgramsSchemaKeys(),
$index_options);
+ // NOTE: The common ngrams table is not marked as an index table. It is
+ // tiny and persisting it across a restore saves us a lot of work garbage
+ // collecting common ngrams from the index after it gets built.
+
$this->buildRawSchema(
$engine->getApplicationName(),
$engine->getCommonNgramsTableName(),
$engine->getCommonNgramsSchemaColumns(),
- $engine->getCommonNgramsSchemaKeys(),
- $index_options);
+ $engine->getCommonNgramsSchemaKeys());
}
protected function buildRawSchema(

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 22, 3:56 PM (7 h, 56 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7031525
Default Alt Text
D18696.id44886.diff (910 B)

Event Timeline