As their own dictionary of values. That way, we have records of old all time values, when we update the website. Originally, I thought I would have a global json file for each streamer, that would increment their stream statistics like total stream time, highest number of viewers, etc, and those values would be overwritten after a stream sesssion computes.
A better way would be to compute all time statistics and include them in the json that hold the rest of the stream stats. When we do that, we don't lose any data (even if its "old") and we can easily reference older data if the streamer requests it (like if we have a feature where you can view your old graphs/stats, on the website).
As their own dictionary of values. That way, we have records of old all time values, when we update the website. Originally, I thought I would have a global json file for each streamer, that would increment their stream statistics like total stream time, highest number of viewers, etc, and those values would be overwritten after a stream sesssion computes. A better way would be to compute all time statistics and include them in the json that hold the rest of the stream stats. When we do that, we don't lose any data (even if its "old") and we can easily reference older data if the streamer requests it (like if we have a feature where you can view your old graphs/stats, on the website).