Differential D19784 Diff 47250 src/applications/search/engineextension/PhabricatorFerretFulltextEngineExtension.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/engineextension/PhabricatorFerretFulltextEngineExtension.php
| Show First 20 Lines • Show All 195 Lines • ▼ Show 20 Lines | try { | ||||
| '(%d, %s)', | '(%d, %s)', | ||||
| $document_id, | $document_id, | ||||
| $ngram); | $ngram); | ||||
| } | } | ||||
| foreach (PhabricatorLiskDAO::chunkSQL($sql) as $chunk) { | foreach (PhabricatorLiskDAO::chunkSQL($sql) as $chunk) { | ||||
| queryfx( | queryfx( | ||||
| $conn, | $conn, | ||||
| 'INSERT INTO %T (documentID, ngram) VALUES %Q', | 'INSERT INTO %T (documentID, ngram) VALUES %LQ', | ||||
| $engine->getNgramsTableName(), | $engine->getNgramsTableName(), | ||||
| $chunk); | $chunk); | ||||
| } | } | ||||
| } | } | ||||
| } catch (Exception $ex) { | } catch (Exception $ex) { | ||||
| $object->killTransaction(); | $object->killTransaction(); | ||||
| throw $ex; | throw $ex; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines | |||||