Live data from Hacker News

5NF and Database Design

kb.databasedesignbook.com

1–10 of 86 posts

Re: 5NF and Database Design

#2
I love reading about the normal forms, because it makes me sound like I know what I'm talking about in the conversation where the backend folks tell me, "if we normalized that data then the database would go down". This is usually followed by arguments over UUID versions for some reason.

Re: 5NF and Database Design

#3

I love reading about the normal forms, because it makes me sound like I know what I'm talking about in the conversation where the backend folks tell me, "if we normalized that data then the database would go down". This is usually followed by arguments over UUID versions for some reason.

So which normal form do they argue for and against? And what UUID version wins the argument?

Re: 5NF and Database Design

#4
post #3

I love reading about the normal forms, because it makes me sound like I know what I'm talking about in the conversation where the backend folks tell me, "if we normalized that data then the database would go down". This is usually followed by arguments over UUID versions for some reason.

So which normal form do they argue for and against? And what UUID version wins the argument?

Not OP, but UUID v7 is what you want for most database workloads (other than something like Spanner)

Re: 5NF and Database Design

#8
post #3

I love reading about the normal forms, because it makes me sound like I know what I'm talking about in the conversation where the backend folks tell me, "if we normalized that data then the database would go down". This is usually followed by arguments over UUID versions for some reason.

So which normal form do they argue for and against? And what UUID version wins the argument?

Explaining jokes is poor form.

Re: 5NF and Database Design

#10

The lost art of normalizing databases. ”Why is the ARR so high on client X? Oh, we’re counting it 11 times lol”. I would maybe throw in date as an key too. Bad idea?

Frankly I don't think that overcounting is solved by normalizing, because it's easy to write an overcounting SQL query over perfectly normalized data.

I tried to explain the real cause of overcounting in my "Modern Guide to SQL JOINs":

https://kb.databasedesignbook.com/posts/sql-joins/#understan...

Post reply on HN