67P / kredits-web

Kredits Web UI
https://kredits.kosmos.org
6 stars 2 forks source link

Implement caching of data #182

Closed bumi closed 4 years ago

bumi commented 4 years ago

Currently all the data is loaded from Ethereum and IPFS when accessing the page. We should cache data to speed up page loads and decrease the amount of data that is required to load each time.

This includes both data from Ethereum and from IPFS.

raucao commented 4 years ago

For IPFS, there is also another option: the js-ipfs node implementation comes with its own IndexedDB cache, which was just improved in the latest release as well.

So, instead of connecting to a separate remote or local node, we could also run an actual node directly in kredits-web, and have it cache its own data.

Alternatively, if we keep the current setup of connecting a normal go-ipfs node, we could at least use the same data model in IndexedDB, so that we could swap with a JS node in the future, and already have the cached data there.