Database Tuning: Principles, Experiments, and Troubleshooting Techniques

Chapter 10: Data Warehouse Tuning

10.1 What's Different About Data Warehouses

Data warehouses differ from transactional databases in three main ways.

  • They are bigger terabytes instead of megabytes or gigabytes.

  • They change less often, often daily or at most hourly. If online changes are allowed, they are normally appends.

  • Queries use aggregation or complex WHERE clauses.

The implications of these three points are surprising.

  • Scanning all the data is too slow. Redundant information is needed in the form of special indexes (such as bitmaps or R-trees) or in the form of structures that hold aggregate information. In Chapter 4, we discussed holding aggregate information about total store sales in one table and total sales per vendor in another table. Data warehouses raise such tricks to high art or try to.

  • There is time to build data structures because the data changes slowly or large parts of the data (e.g., all old data) change slowly.

  • Queries that perform aggregates benefit from structures that hold aggregate information. Queries having complex WHERE clauses benefit from query processing engines that can exploit multiple indexes for a single table.

  • Because of the large variety of data warehouse applications (aggregate rich, complex WHERE clause, massive joins), many technologies have survived and have found niches.

In this chapter, we discuss the use and tuning of a wide variety of indexing techniques (e.g., bitmaps and star schemas), table caching techniques (e.g., tables and matrices that store aggregate data), sampling (e.g., extrapolate from portions of tables), and query processing methods (e.g., optimized foreign key joins).

In...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Data Warehousing Software
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.