open-brainy/src/hnsw
David Snelling 6d4046fbd8 perf: extend adaptive loading to HNSW and Graph indexes
Applies v4.2.3 adaptive loading pattern to all 3 indexes for complete cold start optimization.

- HNSW Index: Load all nodes at once for local storage (FileSystem/Memory/OPFS)
- Graph Index: Load all verbs at once for local storage
- Cloud storage (GCS/S3/R2/Azure): Keep pagination (native APIs efficient)
- Auto-detect storage type via constructor.name
- Eliminates repeated getAllShardedFiles() calls (256 shard scans)

Performance:
- FileSystem cold start: 30-35s → 6-9s (5x faster than v4.2.3)
- Complete fix: MetadataIndex (2-3s) + HNSW (2-3s) + Graph (2-3s) = 6-9s total
- From v4.2.0: 8-9 minutes → 6-9 seconds (60-90x faster)
- Cloud storage: No regression

Resolves Workshop team v4.2.x performance regression.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-23 09:49:48 -07:00
..
distributedSearch.ts 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
hnswIndex.ts perf: extend adaptive loading to HNSW and Graph indexes 2025-10-23 09:49:48 -07:00
hnswIndexOptimized.ts feat: implement always-adaptive caching with getCacheStats monitoring 2025-10-10 14:09:30 -07:00
optimizedHNSWIndex.ts 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
partitionedHNSWIndex.ts feat: implement always-adaptive caching with getCacheStats monitoring 2025-10-10 14:09:30 -07:00
scaledHNSWSystem.ts feat: Brainy 3.0 - Production-ready Triple Intelligence database 2025-09-11 16:23:32 -07:00
typeAwareHNSWIndex.ts feat(v4.0.0): Complete metadata/vector separation architecture with Azure support 2025-10-17 12:29:27 -07:00