I'm trying to build a system to store price data. According to my calculations, I'm going to be inserting about 20 million rows every day. This will quickly add up to billions of rows.
The queries will be very ad-hoc, mostly things like histograms, and grouping by certain attributes. It's also possible that some of the products will rarely/never be queried, not sure if it makes a difference. Read performance is still more important.
Is something like TimescaleDB a good choice?
I would also like to not spend a fortune on this (couple hundred a month at maximum). So is this even possible with the cost constraint?
VictoriaMetrics works out of the box without the need to set up third-party systems or wroting complex configs. It is also very fast for both data ingestion and querying [3], [4].
[1] https://github.com/VictoriaMetrics/VictoriaMetrics/wiki/Metr...
[2] https://medium.com/@valyala/promql-tutorial-for-beginners-9a...
[3] https://medium.com/@valyala/measuring-vertical-scalability-f...
[4] https://medium.com/@valyala/billy-how-victoriametrics-deals-...