Store Item
bytes in content-addressable store
#93
Labels
impl
This is an implementation detail for this implementation of Feoblog, not the public protocol/API
When a user uploads an
Item
, its bytes are currently stored directly into theitem
table for easy access. But, that means that if multiple users sign and upload the sameItem
, it gets stored multiple times. And with #92 we'll already be storing some items into thestore
.Instead, we should always store the item's bytes into the content-addressable
store
.Implementation details to update:
Item
uploads store the bytes instore
.store
db
usage
andprune
to account for items stored in this way. (i.e.: don'tprune
rows fromstore
that have a correspondingitem
entry!)The text was updated successfully, but these errors were encountered: