questions about using parity-db for ipfs
Closed this issue · 0 comments
dvc94ch commented
- Can reads happen from multiple threads? The db is not cloneable. dumb question, put it in an Arc 🤦
-
Is the maximum value size limited to 16kb?
-
What is a good way to determine the size tiers?
-
Can the reference count be interacted with somehow (ex increment, decrement, query the reference count in a transaction)?
Ipfs refcounting requirements are likely sufficiently different that we disable ref counting and implement our own. A block can references other blocks. The pin count determines if it's needs to be kept around. Once the pin count and the reference count are zero the block can be removed, and the reference count of all it's children is decremented.