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

Method beginBulkRefLoad

src/db/index.ts:284–288  ·  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

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

Callers 1

Calls 1

execMethod · 0.65

Tested by

no test coverage detected