thenewboston-developers / thenewboston-Backend

API for thenewboston.
18 stars 10 forks source link

Total Contributions by day #187

Closed buckyroberts closed 5 months ago

buckyroberts commented 6 months ago

Right now this contributions chart pulls down all contributions from the backend for the data needed to render the chart, which is becoming really slow. Instead, we need a custom endpoint on the backend to provide this data. The endpoint will aggregate the contribution amounts into days. So for each day, the total contributions are equal to the contributions from that day plus all other contributions before it. So that chart will always be constantly increasing.

Screen Shot 2024-05-12 at 5 25 05 PM
MAbdurrehman1 commented 5 months ago

@buckyroberts This was done in this PR https://github.com/thenewboston-developers/thenewboston-Backend/pull/209, so closing this issue.