I am working on a price tracking application that gathers data from different online stores and remap them to our own product database. We are already gathering prices together with the date they are retrieved.
Our first presentation of this data would be retrieving average price and also prices in a form of line chart between price and time, we would like to see how the price changes over time.
My question is, what are the best practices over storing and retrieving this historical data (for the purpose of charting)? I have several things in mind currently:
- Create an external app that will retrieve the values from the DB, generate a denormalized file containing required data, and purge the DB (to keep it small)
- Expose the file as JSON for easy client-side retrieval (instead of server-generated to reduce load)
Platform: IIS, ASP.NET, SQL Server 2005
We are currently using Google Charting API for other parts of the application, that may be taken into consideration.