What is the best way to store historical data in SQL Server 2005/2008?

后端 未结 8 951
刺人心
刺人心 2021-02-12 10:55

My simplified and contrived example is the following:-

Lets say that I want to measure and store the temperature (and other values) of all the worlds\' towns on a daily

8条回答
  •  旧巷少年郎
    2021-02-12 11:08

    I would use a single table with index views to provide me with the latest information. SQL 2005 and 2008 server are designed for data warehousing so should preform well under this condition.

    If you have a data pattern that requires writing to the db often, then the best choice would be to have an active table and archive table that you batch update at some interval.

提交回复
热议问题