ipfs pin add on large trees is extremely slow even when most of the content is already pinned
#4985
Projects
ipfs pin add on large trees is extremely slow even when most of the content is already pinned
#4985
ToxicFrog commentedApr 28, 2018
•
edited
Version information:
Type:
Enhancement
Description:
ipfs pin addis slow on large data sets, because it needs to walk the entire tree in order to verify that it exists on the node (and, if not, fetch it from elsewhere) before the pin is considered successful. This is expected.However, it looks like when pinning something that itself contains other pinned objects, it re-checks all of the contents, even though it should know that the contents are already present.
Reproduction:
The call to
ipfs pin addwill take as long as the originalipfs adddid, or nearly so, even though all that data is already pinned and known to be present.Ideally,
pin add-- or whatever underlying function it calls to make sure the data is all available in the node -- should be smart enough to realize that when it encounters a recursively pinned object, it doesn't need to traverse that object's children, as they are guaranteed to be present.The text was updated successfully, but these errors were encountered: