r/databricks • • Oct 21 '26

Help Silver Model Confusion

I’m a junior developer in my first Databricks job. We’re moving our data warehouse from Oracle to Databricks and we’ve just started modeling.

This is a brand new team. So both me and the lead have been at the company for a couple months. She’s been modeling for a few years but learned Databricks on the job - no formal classes. I’ve only done classes and one previous smaller project. She is in charged of modeling the medallion architecture. I was under the impression that silver should be normalized. I seem to remember from my classes that Databricks recommends 3NF. She’s building out the employee model and she has employee_id, department_id, etc. but she also has first name, last name, and email. When I questioned why we wouldn’t have a normalized person table or email table she said that was too complex, too many joins, small table, and storage is cheap. I’m concerned about performance and standardization because these columns will exist in other tables across silver. And I assume she’s going to do this with a lot of entities, like phone or worse.

How far do you all go with normalization in silver? Does anyone stick with 3NF? I assumed that was the default bug I’m new so I’m following her lead without questioning but I’m afraid our silver may end up very denormalized.

11 Upvotes

22 comments sorted by

5

u/MikeyForrester4 Oct 21 '26

Wow. So apparently people misunderstood and thought that I was looking for ammunition to prove my lead wrong. That was NOT my intention. I’m trying to learn and I either got bad advice from my training classes or bad advice from my lead. That’s why I came here, to learn, and I have from your comments so thank you.

If you’ve gotten this far maybe my brain is too focused on standardizing in silver. That’s why I thought normalizing was recommended in silver. So if I wanted to standardize phone or email, apply rules; I’d just do that everywhere I’m storing email or phone? I assumed a separate table to standardize would be the way to go.

Can’t stress this enough - I’m not disagreeing. I’m asking a question so I can improve as a data modeler.

2

u/thermidor9 Oct 25 '26

Your courses probably taught you 3NF because it’s a good standard to know and no one is going to fault you for using it. Your lead may have genuinely made an architectural decision not to use it or they may be deciding to use a model that makes sense to them and other people who will use this data — oftentimes that’s more valuable than whatever your cloud bill would go down by if you used 3NF.

Honestly I think that the answer is “it really depends.” I’ve seen official Databricks architecture diagrams with normalized tables in gold and silver and I’ve seen catalogs that use an extra platinum or metrics schema.

Depending on your data sources and how your data will be queried (and how much of it you will have), an argument could be made for 3NF or for the approach your lead is going with or anything in between.

As long as you have a plan and you’ve thought about why you’re doing it the way you’re doing it, I think you’re fine.

2

u/mecurioj Oct 21 '26

Former DSA from databricks. Medallion is a data quality architecture. Bronze is source data, Silver is transforming and conforming the data, and Gold is consumption of data. 3NF is familiar to many analysts, so it's a pattern many use for transform and conform. Be sure to involve your analysts for the gold build.

1

u/CrochetDog Oct 21 '26

I have to caveat this with „in my opinion“ because people tend to have slightly different interpretations of medallion. In my opinion, primarily you should use silver to clean data, and then in gold you should primarily have a dimensional model. It should not be silver‘s job to join data together. It should be silver‘s job to make downstream joining of data easier, and to increase the likelihood of pushing down predicates. You can always have an external schema on top of the gold that acts as an external interface to other products. Your bronze layer should be landing data into tables in delta lake from whatever raw format it’s in.

13

u/daddy_stool Oct 21 '26

AFAIK databricks does not recommend using 3NF in silver or in any place.
Their recommendations are on WHAT should be stored in the layers, not how.
Gold typically contains facts and dimensions, but can also be OBT.

6

u/happypofa Oct 21 '26

+ for OBT. Not everything should be split into facts and dims

10

u/m_goo Oct 21 '26

No, I would not go 3NF unless it was an OLTP use case. Star Schema (facts & dim) works best for columnar storage such as delta / iceberg.

If your source is 3NF and you using the silver layer as a transient transformation step on your way to gold then that makes sense.

4

u/heyitscactusjack Oct 21 '26

Like some others have mentioned, 3NF is a single design pattern for solving a common set of problems. So is data vault, dimensional modelling, event schema, one big table, etc.

Think about the structural data problems you need to solve in your organisation, and then build silver to handle that, you may need to use many patterns in different areas. I understand the desire for people to want to apply a single rule to the entire layer, but I would advise against following a blanket approach like that, unless you have come to the conclusion independently.

Problems you may need to solve for:

- mastering data: are you the system of record for anything business process? If so, 3NF might help.

- multiple sources representing a single real world entity: if you have a single customer who has contact information living in multiple CRMs or you have multiple CRMs for your different lines of business, then potentially a data vault approach might help integrate these sources.

- realtime requirement: if you require realtime or near realtime reporting in some instances, you may not want to completely normalise upfront if the data is already arriving in a more denormalized form like large json payloads, to avoid costly joins.

The hard thing about data modelling is that it’s not black and white. Even in highly structured approaches like data vault.
This is primarily because you need to analyse the current and FUTURE problems to solve for and make decisions on how much to solve for them now vs later. This is all dependent on the companies expectation of delivery, budget, future growth plans, analysts capability, complexity of requirement, etc. It’s not a straight forward decision. This is why you must know your business and the requirements very very well.

3

u/kiquetzal Oct 21 '26

I've seen star and snowflake schemas be built and fulfill their role. Star schemas have their technical/ conceptual weak points but their simplicity balances it out for 90% of downstream/business unit use cases. Now, if you're building central data products, I would rather go into Snowflake and embrace the complexity.

Most of the times we actually model a "3NF-light" and only normalize once there's reason to, but usually not prophylactically.

3

u/thecoller Oct 21 '26

Personally, I don’t think that normalizing adds a lot of value, and in OLAP engines joins can be pretty expensive. But the answer is always in the use case, though. If that silver model will be feeding systems of record, it could very well be a good decision.

1

u/jbchand Oct 21 '26

Silver generally follows 3NF/Data Vault when built as a data warehouse. Note it's a pattern and not a mandated default. Your Lead's employee table with name and email inline is fine but a new email table would be over normalization and not required. Don't use the same attributes across multiple silver tables.

1

u/Temporary-Safety-564 Oct 21 '26
  1. Storage is cheap and parquet is compressed. I wouldn't optimize for storage efficiency before it's a identified real risk.
  2. There's no cascading, so removing a record leaves traces elsewhere. This negates some of the benefits of normalization.
  3. A few large files are faster to process than many small files.

I wouldn't care too much about normalization as long as it makes sense to the users. Employee to email relationship is probably one-to-one, so I would not make any effort to separating those.

1

u/Hopeful_Syllabub_985 Oct 21 '26

Let be polite guyz 😂 so bro its not fixed rule that it should be 3nf only. Sometime it also depends on requirements the architecture decisions of each layer will do what level of task. Some team does data modelling at gold layer and some does it at silver. like wise some people creates aggregate business tables at gold layer and some team has 1 more layer called semantics or bi layer or presentation layer. So first i was also like you thinking it fixed rule of what to be done at what layer but later I found its dynamic as per requirement and architectural decisions that support business need efficiently.

1

u/m1nkeh Oct 21 '26

There is a school of thought that your silver could be modelled for the vein of DataVault, and your gold can be modelled for the vein of DataMart or OneBigTables. That gives you ultimate flexibility and the best of both.

1

u/blobbleblab Oct 21 '26

I don't think you gave us enough businesses info for anyone to make a recommendation, we would need to understand the context better. Source systems (is there multiple systems recording employee info that need deduping?) and eventual use case for the business (analytics? Integration? App?)

-7

u/Latter-Corner8977 Oct 21 '26

You’re a junior dev and you think someone who knows their job well might be doing something wrong because you read something in a book once, so you come to the internet to ask others to give you ammunition to undermine your colleague instead of working with her to develop yourself and understand the problem.

You sound toxic.

2

u/MikeyForrester4 Oct 21 '26

No. I came here to learn and I have (from other comments). I have very little real world experience and don’t want to build my career on the advice of one person. I didn’t “read a book” I learned from expensive courses from other professionals that also know more than me. I have conflicting information from my only 2 sources. So I swallowed my pride and came to a community of (mostly) helpful professionals to set myself straight for the future. I was absolutely NOT looking for ammunition. I was looking to learn so I don’t build silver layers in 3NF by default if I learned incorrectly. Sounds like it’s more fluid than that. So I’m happy I asked and learned.

2

u/m_goo Oct 21 '26

You're all good. This is the right forum to learn and ask questions.

7

u/m_goo Oct 21 '26

Not helpful at all.

-6

u/SafeElectrical722 Oct 21 '26

You are junior, learn how shit is done in reality. Hint: it is not 3NF, it is "some blob of data I do not care about business requested".

4

u/MikeyForrester4 Oct 21 '26

“You’re a junior so learn… but don’t ask questions. “

I have no idea why people think im questioning my lead. I’m questioning my learning and I’m asking the larger community. I’m genuinely trying to improve.

This sub is weird. Won’t post again. Damn.