You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: improve storage structure to eliminate redundancy (#100)
- Remove separate blobs/ directory, store everything under versions/
- Track current version via metadata.current_version field
- Eliminate need to copy/move blobs when creating versions
- Simplify update operations - just add new timestamp file
- Add storage design notes explaining the benefits
The storage structure uses a single `versions/` directory for all blobs rather than separate `blobs/` and `versions/` directories. This design:
492
+
493
+
1.**Eliminates redundancy** - No duplicate storage of current blob
494
+
2.**Simplifies updates** - New versions just add a timestamp file
495
+
3.**Improves atomicity** - Single write operation for new versions
496
+
4.**Reduces complexity** - No file copying or moving operations
497
+
5.**Better consistency** - Metadata always points to valid version file
498
+
499
+
When fetching the current blob, the system reads metadata to get the `current_version` timestamp, then fetches from `versions/{id}/{current_version}.bin`.
0 commit comments