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

Method beginBulkRefLoad

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

248 * CREATE INDEX IF NOT EXISTS).
249 */
250 beginBulkRefLoad(): void {
251 for (const idx of DatabaseConnection.BULK_REF_INDEX_NAMES) {
252 this.db.exec(`DROP INDEX IF EXISTS ${idx}`);
253 }
254 }
255
256 /** Leave bulk-ref mode: recreate each index in one scan (yield between). */
257 async endBulkRefLoad(): Promise<void> {

Callers 1

Calls 1

execMethod · 0.65

Tested by

no test coverage detected