[data processing] Data model

vividime-Club Show all floors Published on 2024-11-27 15:15:59 |Reading mode print Previous Topic Next Topic
16
Unresolved

【data processing】 Data model

1143 1
How to avoid data bloat in the data model?
reply

Using props report

Exciting comments1

vividime-Club Show all floors Published on 2024-11-27 15:16:22
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:
reply

Using props report

Advanced mode
You need to log in before you can reply to the post login | Free registration

© 2024 VIVIDATA PTE. LTD. All Rights Reserved. Privacy Statement