【文章內(nèi)容簡(jiǎn)介】
個(gè)額外的唯一鍵欄位。?Degenerate Dimension(退化維度 ):存在 fact中,與實(shí)際 dim並無(wú)關(guān)連 (如訂單編號(hào) )Dimension Table特性:?包含代理鍵的主鍵?跟 fact Table有一對(duì)多的關(guān)係?至少包含一個(gè)決策因子?包含 MultiLevel的維度階層欄位?包含隨時(shí)間變化的資料記錄欄多維度模型的設(shè)計(jì)步驟 (三 )2425Aggregation 的設(shè)計(jì)? 利用預(yù)先計(jì)算好的加總來(lái)提高分析的速度。因?yàn)?Aggregation可以在提交查詢(xún)前,就先準(zhǔn)備好以改善查詢(xún)的反應(yīng)時(shí)間,因此可以降低擷取資料時(shí),系統(tǒng)動(dòng)態(tài)計(jì)算結(jié)果所造成的效能負(fù)荷。但是必須注意:? 動(dòng)態(tài)建立 Aggregation 或在資料載入階段時(shí)建立 Aggregation? Aggregation可以?xún)?chǔ)存在資料倉(cāng)儲(chǔ)中以便重複使用,或是在做每一次查詢(xún)時(shí)動(dòng)態(tài)的建立起來(lái)。? 以?xún)?chǔ)存空間與處理時(shí)間為考慮因素多維度模型的設(shè)計(jì)步驟 (四 )2526Data Cell 與 Aggregation Cell銷(xiāo)售數(shù)量 硬體 軟體臺(tái)北 100 150高雄 250 100銷(xiāo)售數(shù)量 硬體 軟體 電腦產(chǎn)品臺(tái)北 100 150 250高雄 250 100 350臺(tái)灣 350 250 600Data Cells : 4Data Cells : 4Aggregation Cells : 5為了加快終端決策者取得資料的反應(yīng)時(shí)間,必須利用儲(chǔ)存空間將 Aggregation資料事先算好並儲(chǔ)存起來(lái)。2627Cube 範(fàn)例27281 二 三 四時(shí)間(季 )DimensionsIBMHPBellAcerCompaq臺(tái)北臺(tái)中高雄DimensionMeansure 銷(xiāo)售數(shù)量高雄地區(qū)第四季 HP的銷(xiāo)售量Cube 範(fàn)例 ( 銷(xiāo)售分析架構(gòu) )2829OLAP Cube儲(chǔ)存模式n M (multidimensional) OLAPp 是將多維度資料及彙總資料Aggregation直接存放在特定的資料結(jié)構(gòu)中如: CUBE,藉由事先運(yùn)算及彙總存放於 CUBE中使 MOLAP的儲(chǔ)存可提供最快速的查詢(xún)回應(yīng)時(shí)間 n R (relational) OLAPp 關(guān)聯(lián)式線(xiàn)上即時(shí)分析系統(tǒng),藉由維度 (Dimensions) 直接的串聯(lián)關(guān)係存及Aggregation存放於關(guān)聯(lián)式資料庫(kù)(RDBMS),或說(shuō)資料倉(cāng)儲(chǔ)的資料庫(kù)中,提供有效的資料存放,不再另外建一 CUBE。 n H (hybrid) OLAPp HOLAP bines MOLAP and ROLAP, it stores aggregation in a multidimensional structure without the copy of source dataMOLAP ROLAP優(yōu) ? 查詢(xún)快速 ? 省空間? 靈活性大 沒(méi)有擴(kuò)充的問(wèn)題缺? 浪費(fèi)空間? 靈活性低 不易擴(kuò)充? 建置 Cube時(shí)間長(zhǎng)? 速度較慢,每次查詢(xún)皆從資料庫(kù)中重新抓資料2930nOLAP functionality nUses relational DB query toolsnExtensions to RDBMSpMultidimensional data schema support pData access language and query performance optimized for multidimensional datapSupport for very large databases (VLDBs)Relational OLAP (ROLAP)3031Typical ROLAP Client/Server Architecture*source: Database Systems: Design, Implementation, Management, 5th Edition, Rob Coronel3132nOLAP functionality to multidimensional databases (MDBMS)nStored data in multidimensional data cubenNdimensional cubes called hypercubesnCube cache memory speeds processingMultidimensional OLAP (MOLAP)3233MOLAP Client/Server Architecture*source: Database Systems: Design, Implementation, Management, 5th Edition, Rob Coronel3334SQL Server 2023SQL Server 2023SQL Server 2023 Reporting Servicesn BI High availabilityn Scalabilityn Ad hoc Reportingn Enhanced Securityn Developer productivityn First to include Enterprise ETL and Deep Data Miningn First to include Enterprise Reporting solutionn Rich Report Design, Deployment Mana