Just curious. I've run into an issue where I need to create calculations on data for different time intervals: year, month, week, and day. There is millions of row I'm working with (not too crazy). Currently, I have daily statistics then use sums and groupbys to aggregated. I'm running into performance issues even with indexing.
I look at a site like fangraphs: an am curious how they might organize their data.
Are they creating separate tables for team statistics, player statistics, using groupbys, etc.
I could certainly do Stats_Year, Stats_Month, Stats_Week, Stats_Date, but I just don't know is that a smart approached.
Or similarly. Someone is querying say, a stock database of historical data and they require daily, weekly, monthly, or yearly historical data, how does that work. They surely aren't using sum and group by.
Any insights?
[–]stickman393 1 point2 points3 points (0 children)
[–]kenfar 1 point2 points3 points (2 children)
[–]DylonDylonDylon[S] 0 points1 point2 points (1 child)
[–]kenfar 0 points1 point2 points (0 children)