advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   TIP BANK
Browse DevX
Download the code for this article
A Faster Disaster?
Textbooks use proverbial sales data for examples. In my own work, I've used Automatic Summary Tables to summarize cotton bale production and to collate data before replicating it over slow networks. Where have you, or would you, use ASTs? What situations and queries are giving you performance problems? Tell us in the DB2 forum.
Partners & Affiliates
advertisement
advertisement
advertisement
advertisement
Average Rating: 4.5/5 | Rate this item | 2 users have rated this item.
 

Tame Beastly Data with Summary Tables

In this 10-Minute Solution, DB2 Pro Greg Nash will examine how DB2 can keep summary tables for you and have your answers waiting before you even ask.  


advertisement
anagers loved Eddie; he always had the answers on-hand.

Eddie was a production supervisor in the pre-computer era. He received comprehensive hourly production reports on paper. He also received urgent queries from managers, who needed up-to-date summaries spanning the entire year's production. He always had a ready answer.



Eddie had learned that in his job, it paid to keep running totals. He could provide a range of summaries without shuffling reams of paper, and point straight to the answers that he kept pinned up on the wall.

Do you run summary queries against your database? Are they slowing down due to the sheer bulk of the raw data? Eddie may have your solution: keep summary tables. In this article, we will examine how DB2 can do it for you and have your answers waiting before you even ask.




How do you quickly obtain a summary from a massive store of live data?



Use summary tables to hold collated information and have them updated as required. Summary tables can be used explicitly or automatically to improve the speed of certain queries.

Summary tables can be:

  • Do-it-yourself: Maintained by application logic or triggers
  • Automatic: Maintained synchronously by DB2
  • Semi-automatic: Maintained asynchronously by DB2 (updates upon request)
    OR
  • Externally hosted: Take the data elsewhere for analysis and reporting. Where you have a lot of activity on your source data, it may be worth replicating to another machine. In fact, this is recommended practice for online analytical processing (OLAP), but outside the scope of this article.
  Next Page: Grouping the Data


Page 1: IntroductionPage 3: Immediate Results
Page 2: Grouping the DataPage 4: Update on Request
Please rate this item (5=best)
 1  2  3  4  5
advertisement