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

Method beginBulkRefLoad

src/db/index.ts:283–287  ·  view source on GitHub ↗

* Enter bulk-ref mode for the batched resolution loop — see * BULK_REF_INDEX_NAMES. MUST be paired with endBulkRefLoad(); a crash * inside the window heals on the next open (schema.sql re-applies * CREATE INDEX IF NOT EXISTS).

()

Source from the content-addressed store, hash-verified

281 * CREATE INDEX IF NOT EXISTS).
282 */
283 beginBulkRefLoad(): void {
284 for (const idx of DatabaseConnection.BULK_REF_INDEX_NAMES) {
285 this.db.exec(`DROP INDEX IF EXISTS ${idx}`);
286 }
287 }
288
289 /** Leave bulk-ref mode: recreate each index in one scan (yield between). */
290 async endBulkRefLoad(): Promise<void> {

Callers 1

Calls 1

execMethod · 0.65

Tested by

no test coverage detected