当前位置:网站首页>Data warehouse model fact table model design
Data warehouse model fact table model design
2022-07-02 07:06:00 【Ayub】
Fact table : Data detail layer , take ODS Layer data , Conduct ETL after , Mild polymerization , Expand details ! Then deposit DWD layer .
1、 When expanding details , Expand some dimensions . Such as adding location information , It mainly extends dimension information .
2、 Refer to the modeling strategy of star model , For business processes , Particle size , dimension , The facts . Use 3W Principles .
who: Who did
where: Where did you do it
what: What they did
Type of fact table :
When designing the fact table , There are actually many different types , Of course, every company has different design methods . We include 3 Kind of .
1. Transactional fact table : The data in the data warehouse remains unique . Data is generated after a transaction event , The granularity of data is usually one record per transaction record . Once the transaction is committed , Fact table data is inserted , The data will not be changed , Its update mode is incremental update . This fact shows that we only focus on incremental processing .
2. Snapshot fact table : Associate the full data of yesterday's partition with the detailed dimension .( Default ODS Partition full data by day )
3. Cumulative fact table : The fact is that , Usually, a transaction has only one primary key , The modification of transactions is based on the original data . The processing of this fact table . Although we can also handle incrementally , But it is the partition that needs dynamic partition to cover history , To make the transaction primary key unique .
Order details --- Transactional snapshot fact table (ODS Yesterday was full join)
Payment fact sheet --- Transactional snapshot fact table
Refund fact sheet --- Transactional snapshot fact table
Evaluate facts quickly --- Transactional snapshot fact table , use 3W principle
Transactional fact table
Shopping cart fact table --- Periodic snapshot fact table , Full amount of synchronization , So generally, only 7 God
Coupon fact sheet --- Cumulative snapshot fact table , Take the starting time of statistical facts as the partition field . The same coverage .
边栏推荐
- CVE-2015-1635(MS15-034 )远程代码执行漏洞复现
- Implement strstr() II
- oracle apex ajax process + dy 校验
- Ingress Controller 0.47.0的Yaml文件
- 2021-07-19c CAD secondary development creates multiple line segments
- Queue (linear structure)
- Solve the problem of bindchange event jitter of swiper component of wechat applet
- JS judge whether the object is empty
- ARP攻击
- Oracle段顾问、怎么处理行链接行迁移、降低高水位
猜你喜欢
Cve - 2015 - 1635 (ms15 - 034) réplication de la vulnérabilité d'exécution de code à distance
sqli-labs通關匯總-page2
sqli-labs通关汇总-page4
Proteus -- RS-232 dual computer communication
Go package name
SQLI-LABS通关(less1)
Date time API details
MySQL中的正则表达式
Uniapp introduces local fonts
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
随机推荐
User login function: simple but difficult
php中时间戳转换为毫秒以及格式化时间
php中的数字金额转换大写数字
2021-07-19c CAD secondary development creates multiple line segments
ORACLE 11.2.0.3 不停机处理SYSAUX表空间一直增长问题
JS delete the last character of the string
flex九宫格布局
ORACLE EBS中消息队列fnd_msg_pub、fnd_message在PL/SQL中的应用
js删除字符串的最后一个字符
Sqli-labs customs clearance (less18-less20)
SQLI-LABS通关(less15-less17)
ORACLE EBS接口开发-json格式数据快捷生成
Win10: add or delete boot items, and add user-defined boot files to boot items
php中获取汉字拼音大写首字母
ARP攻击
RMAN incremental recovery example (1) - without unbacked archive logs
sqli-labs通关汇总-page4
pySpark构建临时表报错
php中的二维数组去重
CRP实施方法论