Indexes in the BAM star-schema database
Some customers have asked why some tables in the star-schema database have indexes and others don't.
As suggested by SQL Books Online “Creating and Using Data Warehouses”, all the dimension tables have the index automatically created on the primary key column “ <dimension name>_ID”. (BTW these implicit indexes don’t show up in the Query Analyzer, but you can see them in the Enterprise Manager.) In addition, for the hierarchical dimensions (data dimensions and time dimensions) composite indexes are created on all dimension levels.
One place that doesn’t have index is the fact table. Theoretically, the fact table should be indexed on the composite primary key made up of the foreign keys of the dimension tables. A few special considerations were taken into account before it was decided not to create index on the BAM fact table:
1. Index occurs overhead on data insert (as well as delete & update)
2. Unlike the BAM primary import table which needs to support heavy instance query and real-time aggregation queries, fact table is only queried during the execution of the star-schema transformation stored proc.
3. Unlike dimension table, the entire fact table is truncated before next DTS run. The table is expected to stay relatively small (of course, table size depends on the incoming data volume, the scheduling of cubing DTS and archiving DTS). Indexing small tables may not be optimal because it can take SQL Server longer to traverse the index searching for data than to perform a simple table scan.
4. The star-schema is dynamically created. Customers may know best what additional index they may need on the fact table based on their business data characteristics and DTS scheduling etc.
Comments
- Anonymous
July 26, 2005
Become part of the BizTalk Server 2006 Beta Team and get BizTalk Server 2006 Beta 1. BizTalk Server 2006... - Anonymous
January 06, 2006
http://vamsibiztalk.blogspot.com/I have posted some of your queries in my blog, as well as all BAM queries,regardsVamsi - Anonymous
June 02, 2009
PingBack from http://patiochairsite.info/story.php?id=30143 - Anonymous
June 14, 2009
PingBack from http://adirondackchairshub.info/story.php?id=803 - Anonymous
June 16, 2009
PingBack from http://fixmycrediteasily.info/story.php?id=7639 - Anonymous
June 17, 2009
PingBack from http://patiosetsite.info/story.php?id=260 - Anonymous
June 17, 2009
PingBack from http://patioumbrellasource.info/story.php?id=796 - Anonymous
June 18, 2009
PingBack from http://barstoolsite.info/story.php?id=2606 - Anonymous
June 18, 2009
PingBack from http://gardendecordesign.info/story.php?id=5116 - Anonymous
June 18, 2009
PingBack from http://fancyporchswing.info/story.php?id=602