brainy/src/storage/adapters
David Snelling 3456ba332a fix(storage): add universal batch metadata reading to ALL storage adapters
CRITICAL FIX: getMetadataBatch was only implemented in S3CompatibleStorage,
causing other adapters to fall back to individual calls = socket exhaustion\!

Universal Implementation:
- Add getMetadataBatch() to MemoryStorage (in-memory batch processing)
- Add getMetadataBatch() to FileSystemStorage (10 concurrent file reads)
- Add getMetadataBatch() to OPFSStorage (10 concurrent OPFS operations)
- Enhanced S3CompatibleStorage with adaptive delays and timeout handling

Enhanced Debugging:
- Log storage adapter type and batch availability
- Clear fallback warnings if batch processing unavailable
- Progress reporting with success rates
- Better timeout and error handling

This ensures socket exhaustion prevention works regardless of storage adapter.
Services using Memory/FileSystem/OPFS storage will now use batch processing
instead of 1400+ individual getMetadata() calls during initialization.

Expected result: Services initialize successfully across ALL storage types
2025-08-07 12:14:23 -07:00
..
baseStorageAdapter.ts feat: v0.49 - Filter discovery API, remove deprecated methods, improve performance 2025-08-06 14:39:33 -07:00
batchS3Operations.ts fix(build): resolve TypeScript compilation errors in optimization modules 2025-08-03 16:51:20 -07:00
fileSystemStorage.ts fix(storage): add universal batch metadata reading to ALL storage adapters 2025-08-07 12:14:23 -07:00
memoryStorage.ts fix(storage): add universal batch metadata reading to ALL storage adapters 2025-08-07 12:14:23 -07:00
opfsStorage.ts fix(storage): add universal batch metadata reading to ALL storage adapters 2025-08-07 12:14:23 -07:00
optimizedS3Search.ts fix: correct typo in README major updates section 2025-08-06 12:29:32 -07:00
s3CompatibleStorage.ts fix(storage): add universal batch metadata reading to ALL storage adapters 2025-08-07 12:14:23 -07:00