mozilla / missioncontrol

Real-time monitoring of Firefox release health
Mozilla Public License 2.0
21 stars 18 forks source link

Store measure data in postgres, instead of redis #140

Closed wlach closed 6 years ago

wlach commented 7 years ago

After having implemented a redis-based cache for the measure data, I am kind of feeling like storing (caching) the measure data in a db (with one row per measure) is a better idea:

Below is a tentative schema. I'm not sure if we want to do this right away, or after we've implemented more of the front end. The latter may make more sense, though I think this design should scale to all the things we've discussed doing.

--

tentative schema:

OS

Channel

Measure

(OS/Channel/Measure will probably be loaded from fixtures, at least initially)

Series

(at some point in the future, we might want to add arbitrary "dimensions" to the series, so we can also aggregate filtered versions of specific series-- but for now, YAGNI)

Version

Datum