* Enter bulk-edge-load mode: drop the non-unique edge indexes so the mass * INSERT OR IGNORE stream pays one B-tree (the identity index) instead of * five — measured 2.8s → 1.1s inserting a 224k-edge resolution set, with * recreation costing ~0.3s. MUST be paired with endBulkEdgeLoad(); a c
()
| 323 | * re-applies CREATE INDEX IF NOT EXISTS). |
| 324 | */ |
| 325 | beginBulkEdgeLoad(): void { |
| 326 | for (const idx of DatabaseConnection.BULK_EDGE_INDEX_NAMES) { |
| 327 | this.db.exec(`DROP INDEX IF EXISTS ${idx}`); |
| 328 | } |
| 329 | } |
| 330 | |
| 331 | /** |
| 332 | * Leave bulk-edge-load mode: recreate the dropped indexes in one pass each |
no test coverage detected