vividime Community

title: Data model [Print this page]

author: vividime-Club    time: 2024-11-27 15:15
title: Data model
How to avoid data bloat in the data model?

author: vividime-Club    time: 2024-11-27 15:16
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:





Welcome vividime Community (https://club.vividime.com/) Powered by Discuz! X3.4