open-brainy/src/storage/adapters
David Snelling 2d27bd01af fix(storage): populate cache before write buffer for read-after-write consistency
Cloud storage adapters (GCS, S3, R2, Azure) use write buffers in
high-volume mode to batch network operations. However, the cache was
not being populated when items were added to the buffer, causing
add() to return successfully but immediate relate() calls to fail
with "Source entity not found".

This fix ensures the cache is populated BEFORE adding to the write
buffer, guaranteeing read-after-write consistency even when writes
are buffered for asynchronous flushing.

Affected adapters:
- GcsStorage: saveNode, saveEdge
- S3CompatibleStorage: saveNode
- R2Storage: saveNode, saveEdge
- AzureBlobStorage: saveNode, saveEdge

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-02 13:23:18 -08:00
..
azureBlobStorage.ts fix(storage): populate cache before write buffer for read-after-write consistency 2025-12-02 13:23:18 -08:00
baseStorageAdapter.ts fix: prevent circuit breaker activation and data loss during bulk imports 2025-10-30 08:54:04 -07:00
batchS3Operations.ts 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
fileSystemStorage.ts feat: ID-first storage architecture + remove memory-unsafe APIs (v6.0.0) 2025-11-19 16:46:11 -08:00
gcsStorage.ts fix(storage): populate cache before write buffer for read-after-write consistency 2025-12-02 13:23:18 -08:00
historicalStorageAdapter.ts fix(cow): asOf() fails with "COW not enabled" due to property name mismatch 2025-12-02 11:22:04 -08:00
memoryStorage.ts feat: ID-first storage architecture + remove memory-unsafe APIs (v6.0.0) 2025-11-19 16:46:11 -08:00
opfsStorage.ts feat: ID-first storage architecture + remove memory-unsafe APIs (v6.0.0) 2025-11-19 16:46:11 -08:00
optimizedS3Search.ts fix: resolve critical 378x pagination infinite loop bug (v5.7.11) 2025-11-13 14:20:19 -08:00
r2Storage.ts fix(storage): populate cache before write buffer for read-after-write consistency 2025-12-02 13:23:18 -08:00
s3CompatibleStorage.ts fix(storage): populate cache before write buffer for read-after-write consistency 2025-12-02 13:23:18 -08:00