OLAP 與 OLTP 系統
資料倉儲概念
Aaren Stubberfield
Data Scientist
OLAP 系統
OLAP(online analytical processing)
為大量資料分析而設計
範例維度:
國家、省州、城市
年、月、日
OLAP 會將資料重組為多維格式
OLAP 立方體
OLAP cube 是 OLAP 系統的核心
相較傳統關聯式資料庫,處理更快
超立方體具有三個以上的維度
OLTP
OLTP(online transaction processing)
為處理簡單資料庫查詢而設計
用於來源系統到資料倉儲
1
Photo by Rodnae-Productions on Pexels
信用卡公司的範例
OLTP:
系統追蹤顧客消費
處理大量簡單的帳戶餘額更新
OLAP:
用於分析消費資料
以多個維度組織資料
重點摘要
差異
OLAP
OLTP
最佳化目標:
用於分析的複雜唯讀查詢
簡單查詢
資料表現:
多維
列與欄
一起來練習吧!
資料倉儲概念
Preparing Video For Download...