MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / endBulkNodeLoad

Method endBulkNodeLoad

src/db/index.ts:275–279  ·  view source on GitHub ↗

* Leave bulk-load mode: rebuild the whole FTS index from the nodes table in * one pass (far cheaper than per-row trigger firings), then recreate the * triggers by re-running schema.sql (idempotent — everything in it is * IF NOT EXISTS).

()

Source from the content-addressed store, hash-verified

273 * IF NOT EXISTS).
274 */
275 endBulkNodeLoad(): void {
276 if (!this.fts5Available) return;
277 this.db.exec(`INSERT INTO nodes_fts(nodes_fts) VALUES('rebuild')`);
278 this.recreateFtsTriggers();
279 }
280
281 /**
282 * NON-UNIQUE secondary indexes maintained per-row during the parse phase's

Callers 4

healBulkNodeLoadMethod · 0.95
indexAllMethod · 0.80
interruptedProjectFunction · 0.80

Calls 2

recreateFtsTriggersMethod · 0.95
execMethod · 0.65

Tested by 1

interruptedProjectFunction · 0.64