filesystem is slow, mongodb is scale (and way faster and it can index the hashes)
filesystem needs to check if file exists, then retrieve it. but mongo can do this in a single step
What I should've done is store them as a mongodb entity, with a {_id, id, hash, data} set of properties. That should make init x10 fast
filesystem is slow, mongodb is scale (and way faster and it can index the hashes) filesystem needs to check if file exists, then retrieve it. but mongo can do this in a single step What I should've done is store them as a mongodb entity, with a {_id, id, hash, data} set of properties. That should make init x10 fast