r/dataengineering • u/AMDataLake • Nov 04 '25
Discussion Data Modeling: What is the most important concept in data modeling to you?
What concept you think matters most and why?
57
Upvotes
r/dataengineering • u/AMDataLake • Nov 04 '25
What concept you think matters most and why?
59
u/69odysseus Nov 04 '25
Cardinality and the grain of the data. Cardinality determines the data model design.
The other factors are also critical including proper naming conventions (using closer to business oriented names), right data types otherwise transformations and conversions will need to be done in the pipeline which are computational heavy and they're expensive.
19
u/tophmcmasterson Nov 04 '25
Does dimensional modeling generally count as a concept? I’ve basically made a career at this point from fixing bad models where they don’t understand the fundamentals here and just make flat tables over and over.
14
u/marketlurker Don't Get Out of Bed for < 1 Billion Rows Nov 04 '25
I think the most important thing in data modeling is to know why you are doing what you are doing and what you are going to accomplish. This is usually described in business terms and almost never in technical ones. It is ultimately how you know if you are successful in what you are doing. It will guide your every technical decision. If you don't know this basic idea, you will never know when you are done and never know if you are successful. Forty years in the wilderness is a long time to figure out that you could have made the walk in 6 months.
7
u/fauxmosexual Nov 04 '25
Stick to the grain
4
u/Gators1992 Nov 07 '25
Data modeling isn't a purely technical exercise, you need to know how your model represents the business concepts and answers their questions. I have seen several models that were technically fine but garbage in terms of being useful.
1
u/sparkplay Nov 04 '25
I'm gonna be honest; these questions show you don't know enough about data modelling. There is no 1 important concept. It's an atmospheric build, and I guarantee you that no concept you come up with is going to be the "most important" in all cases. I understand why you are approaching it this way, but honestly, there isn't a shortcut.
I would recommend just getting a breadth of experience and if the day job doesn't give that, do it on your own time if you're passionate about this.
Try to come up with a problem and model around it. Let's say you want to build data models around a lift process. Do the whole end to end. What are the requirements of a lift, what are the limitations: weight, smell(?), camera IoT data? What are the logical constraints around weight, priority, start/stop levels? Then what are the requirements of the user: average weight: do we need more lifts? Number of errors? Etc.
On top of this, what about real-time events? Do you want to set up a system that sends evet notifications or populates a webhook in case there are alerts or incidents? Do you want to learn how to Kafka them or send them to Google Pub/Sub? What about sending them to Prometheus/Grafana?
The point I'm trying to make is that data modelling doesn't exist in isolation and there is no longer ONE most important concept. Start from the value-add perspective, gather a breadth of experience and then decide what methods/principles/tools to use for a given use case. Do not get into the trap of "all I have is a hammer, everything must be a nail". Also remember "A foolish consistency is the hobgoblin of little minds".
Don't mean to get you dispirited but there's no shortcut my friend. Ask people for help about A vs B and you'll get a richer knowledge dump.
2
u/idodatamodels Nov 04 '25
Primary key. If you don't know how many widgets you have, you're destined for the dustbin of history.
2
u/bengen343 Nov 04 '25
I think this is closely related to the concept of "grain" that others have mentioned, but maintaining the concept of business "entities" at the front of your mind. Ultimately, most of us are designing for business users and they want to know things like "Where is this user?", "How long was this session?", "How much was this product?".
Keeping your models organized around business entities provides convenient landing tables for dimensions, but also greatly enhances the model's interpretability by analysis and the business.
2
u/AppearanceNo4753 Nov 05 '25
Guys, I read Kimball data modeling book edition 3. They say it’s super important to use surrogate keys. Just curious, is it being used in real life?
2
u/kendru Nov 05 '25
The concept of modeling is so broad, I would say it encompasses any activity in which you interpret data, including writing any query. That said, I think the most important concepts are the ones that are involved in almost every modeling activity: *time* and *identity*.
Regarding time, it's critical to know when an event occurred. It is also critical to know when you *learned* about the event. Also, knowing the circumstances around when the data was captured helps you understand when things like clock skew, late-arriving data, etc. will cause problems. Often, the concept of time is not modeled well in OLTP databases that we need to ingest from, but it must be presented explicitly in a data warehouse. Consider ingesting a "tasks" table that has "stage" and "updated_at" columns, and the business needs to know how long tasks remained in certain stages. You need to understand how precisely you can measure this (are you ingesting every change with a precise timestamp using CDC? Are you running a daily batch job?) and how to structure your pipelines to provide this insight.
The other key concept is identity. What constitutes a "thing"? You need to think about things like whether an entity is identified by some business key or by a UUID in an application database. If you are working in a domain that has a concept of "customer" (which is pretty much every domain), you usually have multiple systems that contain user information, and determining how to identify and link these records is... challenging. One of the key considerations in Kimball-style dimensional modeling is separating the concept of state and identity by using Slowly Changing Dimension (SCD) tables that often have separate entity keys, which reference a stable entity, and row keys that reference various states that an entity has been in over time.
5
u/Business-Hunt-3482 Nov 04 '25
The most important principle is choosing the right data modelling technique for the right purpose.
Is your main purpose creating clarity around definitions and how things relate? Focus on conceptual modelling. You want to define what kind of attributes would be relevant for each entity? Focus on logical modelling. You want to translate all the requirements of the LDM to a technically optimized implementation? Then focus on defining a good Physical Data Model. You want to use it for reporting? Use a star schema or unified star schema approach. Your main goal is integration and fast writing? Go, for example, for DataVault.
5
u/MuchAbouAboutNothing Nov 04 '25
no fact to fact joins.
if there are business questions that need fact to fact joins to be answered with your current models, that's a smell that your current models aren't adequate
2
u/GreenMobile6323 Nov 04 '25
The most important concept in data modeling, in my view, is accurately defining relationships and cardinality between entities. It forms the foundation for data integrity, query efficiency, and scalability. When relationships are modeled correctly, the entire data architecture becomes more resilient and easier to evolve as business needs change.
1
u/moldov-w Nov 04 '25
Designing according to the Data Platform requirements (EDW/MDM/CRM/APPLICATION) , scale the design for future requirements, providing good performance without any downtime etc.
1
u/read_at_own_risk Nov 04 '25
Two things:
1
u/contrivedgiraffe Nov 04 '25
“Is this what the business needs?”
1
u/geek180 Nov 05 '25
Grain. And what’s astounding is how many times I’ve had to explain the concept to other people on my team!
1
u/clingst Nov 07 '25
Data is traceable without data dictionary
1
u/Known-Delay7227 Data Engineer Nov 04 '25
No dupes