I am building a PostgreSQL database and I have created a timestamp
table, where the primary key is the timestamp itself (e.g. id: Fri Apr 13 2018 15:00:19
). The database is supposed to be later migrated to a data warehouse, from which analytics will be extracted.
At this point, I am wondering whether it is beneficial to add extra columns to the timestamp
table, containing the parsed metrics such as the example below, or have a single table with …
postgresql performance database-design optimization timestamp query-performance