Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14755134
D18696.id44886.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
910 B
Referenced Files
None
Subscribers
None
D18696.id44886.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D18696: For backup persitsence, mark the "common ngrams" table as a data table, not an index table
Attached
Detach File
Event Timeline
Log In to Comment