greenlucid / vagarish

Search engine for Kleros
2 stars 0 forks source link

Use mongo instead of filesystem to store ipfs data #6

Open greenlucid opened 3 years ago

greenlucid commented 3 years ago

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