How can Datascale help Visualize Data Models? (3NF vs Dimensional)
Poom Wettayakorn
data-modeling
Found a great blog post by Cassio Bolba comparing concepts, pros/cons and use cases of 3NF and Dimensional modeling.
A quick comparison of 3NF vs Dimensional
In short, 3NF is useful in operational processing because an update or insert transaction touches the database in only one place, while Dimensional data modeling addresses the problem of overly complex schemas and optimizes query performance for analytical and reporting systems.
See it in action
The blog also includes examples of DDLs for each model, which are great for understanding how each model works. So, here's how you can quickly visualize the DDLs into an ER diagram using Datascale!
Check out the example DDLs and ER diagram from this link: https://datascale.cloud/sqls/3nf-vs-dimensional-modeling
How it works
At Datascale, we built a tool to parse and extract metadata from DDL (CREATE TABLE statement). The DDL needs to have the following metadata:
Table name
Column name and data type
References (this is where we map out the relationships from your SQL)
Learn more: DDL-to-ERD
SQL to ERD
We also provide a support for both SQL and DDL in the same query. 🎉
This is where we can help model your database in more advanced use cases. E.g.,
Learn more: SQL-to-ERD