dat-ecosystem-archive / datBase

Open data sharing powered by Dat [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]
http://datbase.org
244 stars 32 forks source link

cache archive size, # of peers periodically #536

Open okdistribute opened 7 years ago

okdistribute commented 7 years ago

Every time we fetch the # of peers and the archive size of a dat, we want to be able to cache them on disk so that users can sort and search and filter by these parameters.

clkao commented 7 years ago

I think it makes sense to cache last_known_stats: {archive_size, peers, timestamp}

But I am not sure if this should be in the primary db or some secondary cache.