integritee-network / crowdloan

crowdloan status and community contributions
The Unlicense
0 stars 6 forks source link

implement caching of contribution history #25

Open brenzi opened 3 years ago

brenzi commented 3 years ago

Loading all the contribution history dynamically is too slow.

option 1: manual, file-based cache

We could have a hard-coded cache of previous contributions committed to the GH repo in regular intervals manually or maybe even with a scheduled GH action

The page should then pre-populate the list of contributions from the cache and load recent contributions dynamically

option 2: index contributions ourselves

by scanning Kusama ourselves and maintaining our own database (possibly using polkascan code?)

brenzi commented 3 years ago

@Alirazadar may I ask you to comment on option 1? How long would you need for this? I believe this would be the leanest solution.

This will allow to add the following features to the crowdloan page:

brenzi commented 3 years ago

@Alirazadar one more reason to use a proper database:

Alirazadar commented 3 years ago

@brenzi yes, understandable. I will have a look at both options. Thank you for explaining!

brenzi commented 3 years ago

please consider #37 which may require our own database (not necessarily indexing ourselves, we could still use subscan for this, but cache the data in our own db

brenzi commented 3 years ago

we will first migrate to a stateful webpage with a mysql db and then come back to this