Database structure for storing historical data

后端 未结 7 979
夕颜
夕颜 2020-12-13 05:48

Preface: I was thinking the other day about a new database structure for a new application and realized that we needed a way to store historical data in an efficient way. I

7条回答
  •  鱼传尺愫
    2020-12-13 06:12

    What you want is called a datawarehouse. Since datawarehouses are OLAP and not OLTP, it is recommended to have as many columns as you need in order to achieve your goals. In your case the orders table in the datawarehouse will have 11 fields as having a 'snapshot' of orders as they come, regardless of users accounts updates.

    Wiley -The Data Warehouse Toolkit, Second Edition
    

    It's a good start.

提交回复
热议问题