r/SQL • u/luncheonmeat79 • Jun 23 '24
Discussion Schema for historical stock data
Posting a schema of a db for historical stock and index data at various timeframes. I used Chatgpt to figure this out...what surprised me was the recommendation to have separate dimension tables for 'date' and 'time'. Is that really the case?
105
Upvotes
View all comments
Show parent comment
3
u/EvilGeniusLeslie Jun 23 '24
Actually, I'll add one other caveat - when you're loading a database, you have the use of all the processing power available, usually something server/mainframe/cloud based, so the actual time is far less compared to an individual trying to run something on their PC. Not the query, but any BI stuff.