I have 100 000 sources/sensors/symbols. From each one I read a value on a daily basis.
I load a database table with these daily data/values. One row for each value AND symbol, thats 100 000 rows per day.
Query1:
As I want to analyze daily data over all symbols I partition the database on year, month, week, day.
Query2:
But I also want to analyze trends/statistics over time for each symbol by reading data up to 24 months back in time per symbol.
Query2 is along another dimension (time-axis) and I dont want to query over several partitions (y,m,w,d) optimized for query1.
What kind of design do you propose ?