* 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).
()
| 375 | * CREATE INDEX IF NOT EXISTS). |
| 376 | */ |
| 377 | beginBulkRefLoad(): void { |
| 378 | for (const idx of DatabaseConnection.BULK_REF_INDEX_NAMES) { |
| 379 | this.db.exec(`DROP INDEX IF EXISTS ${idx}`); |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | /** Leave bulk-ref mode: recreate each index in one scan (yield between). */ |
| 384 | async endBulkRefLoad(): Promise<void> { |