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

Method beginBulkParseLoad

src/db/index.ts:229–234  ·  view source on GitHub ↗

* Enter bulk-parse-load mode (FRESH-INIT ONLY — the caller gates on a fresh * DB, because an incremental index deletes per-file rows mid-phase and needs * the file_path indexes): drop every parse-lane secondary index, including * the four non-unique edge indexes (parse inserts contains-edge

()

Source from the content-addressed store, hash-verified

227 * EXISTS).
228 */
229 beginBulkParseLoad(): void {
230 for (const idx of DatabaseConnection.BULK_PARSE_INDEX_NAMES) {
231 this.db.exec(`DROP INDEX IF EXISTS ${idx}`);
232 }
233 this.beginBulkEdgeLoad();
234 }
235
236 /**
237 * Leave bulk-parse-load mode: recreate everything the window dropped, one

Callers 1

indexAllMethod · 0.80

Calls 2

beginBulkEdgeLoadMethod · 0.95
execMethod · 0.65

Tested by

no test coverage detected