› community › forum › Data model

[data processing] Data model

1
reply
11046
view
vividime-Club Show all floors Published on |Reading mode
16
Unresolved

【data processing】 Data model

11046 1
How to avoid data bloat in the data model?
vividime-Club Show all floors Published on
1. Overview
The data model is designed to prevent data bloat caused by table join in a one-to-many (many-to-one) or many-to-many scenario in a detail table, so the processing logic when acquiring the data is to aggregate the fields involved in the join with the fields bound to the component before join them.
2. Data inflation
Suppose the following data table exists
Dataset 1:
Dataset 2:
Dataset 1 left join dataset 2:
Aggregating sales at this point would result in Shanghai's sales being counted twice, which would lead to incorrect results from the inflated data.
➢Note:
Inner join, outer join, and right join will have the same effect.
2. Data model processing effects
The data model aggregates and then join the fields involved in the join with the fields bound to the component.
The example dataset above produces the data model setup as follows:
Data results presentation:
© 2024 VIVIDATA PTE. LTD. All Rights Reserved. Privacy Statement