Design Issues When and how to gather data Source driven architecture:data sources transmit new information to warehouse,either continuously or periodically (e.g.,at night) Destination driven architecture:warehouse periodically requests new information from data sources Keeping warehouse exactly synchronized with data sources (e.g.,using two-phase commit)is too expensive Usually OK to have slightly out-of-date data at warehouse Data/updates are periodically downloaded form online transaction processing (OLTP)systems. What schema to use Schema integration Database System Concepts-6th Edition 20.7 @Silberschatz,Korth and Sudarshan
Database System Concepts - 6 20.7 ©Silberschatz, Korth and Sudarshan th Edition Design Issues When and how to gather data Source driven architecture: data sources transmit new information to warehouse, either continuously or periodically (e.g., at night) Destination driven architecture: warehouse periodically requests new information from data sources Keeping warehouse exactly synchronized with data sources (e.g., using two-phase commit) is too expensive Usually OK to have slightly out-of-date data at warehouse Data/updates are periodically downloaded form online transaction processing (OLTP) systems. What schema to use Schema integration
More Warehouse Design Issues Data cleansing E.g.,correct mistakes in addresses(misspellings,zip code errors) Merge address lists from different sources and purge duplicates How to propagate updates Warehouse schema may be a(materialized)view of schema from data sources What data to summarize Raw data may be too large to store on-line Aggregate values(totals/subtotals)often suffice Queries on raw data can often be transformed by query optimizer to use aggregate values Database System Concepts-6th Edition 20.8 @Silberschatz,Korth and Sudarshan
Database System Concepts - 6 20.8 ©Silberschatz, Korth and Sudarshan th Edition More Warehouse Design Issues Data cleansing E.g., correct mistakes in addresses (misspellings, zip code errors) Merge address lists from different sources and purge duplicates How to propagate updates Warehouse schema may be a (materialized) view of schema from data sources What data to summarize Raw data may be too large to store on-line Aggregate values (totals/subtotals) often suffice Queries on raw data can often be transformed by query optimizer to use aggregate values
Warehouse Schemas Dimension values are usually encoded using small integers and mapped to full values via dimension tables Resultant schema is called a star schema More complicated schema structures Snowflake schema:multiple levels of dimension tables Constellation:multiple fact tables Database System Concepts-6th Edition 20.9 ©Silberschat乜,Korth and Sudarshan
Database System Concepts - 6 20.9 ©Silberschatz, Korth and Sudarshan th Edition Warehouse Schemas Dimension values are usually encoded using small integers and mapped to full values via dimension tables Resultant schema is called a star schema More complicated schema structures Snowflake schema: multiple levels of dimension tables Constellation: multiple fact tables
Data Warehouse Schema item_info store item id store_id itemname city color state sales size country category item id store id customer id date customer number date info customer id price name date street month city quarter state year zipcode country Database System Concepts-6th Edition 20.10 @Silberschatz,Korth and Sudarshan
Database System Concepts - 6 20.10 ©Silberschatz, Korth and Sudarshan th Edition Data Warehouse Schema
Data Mining Data mining is the process of semi-automatically analyzing large databases to find useful patterns Prediction based on past history Predict if a credit card applicant poses a good credit risk,based on some attributes(income,job type,age,..and past history Predict if a pattern of phone calling card usage is likely to be fraudulent Some examples of prediction mechanisms: Classification Given a new item whose class is unknown,predict to which class it belongs Regression formulae Given a set of mappings for an unknown function,predict the function result for a new parameter value Database System Concepts-6th Edition 20.11 @Silberschatz,Korth and Sudarshan
Database System Concepts - 6 20.11 ©Silberschatz, Korth and Sudarshan th Edition Data Mining Data mining is the process of semi-automatically analyzing large databases to find useful patterns Prediction based on past history Predict if a credit card applicant poses a good credit risk, based on some attributes (income, job type, age, ..) and past history Predict if a pattern of phone calling card usage is likely to be fraudulent Some examples of prediction mechanisms: Classification Given a new item whose class is unknown, predict to which class it belongs Regression formulae Given a set of mappings for an unknown function, predict the function result for a new parameter value