Performance optimizations for billion-scale deployments: - Vector search N+1 fixed: batchGet() instead of individual get() calls GCS: 10 results now 1×50ms vs 10×50ms = 10x faster - Static imports: validation functions imported at module load Saves 1-5ms per add/update/relate/find operation - VFS race condition: added _vfsInitialized flag with warning Prevents undefined behavior during concurrent init/access - HNSW rebuild fix: property mismatch (nounType→type) Eliminates N+1 metadata fetch during index rebuild - Removed debug console.log in relate() hot path 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| hnswIndex.ts | ||
| typeAwareHNSWIndex.ts | ||