No video

Twitter Wars! Natural vs Surrogate Keys

  Рет қаралды 1,677

SQL and Database explained!

SQL and Database explained!

Күн бұрын

So much emotion for so little reason. Let's finally decide what is the best key to use when designing your databases.
Follow me!
blog: connor-mcdonal...
twitter: / connor_mc_d
The Podcast!
podcasts.apple...
open.spotify.c...
Subscribe for new tech videos every week
Other social media channels here: linktr.ee/connor
Music: The Wine, The Cars, Ah! Montmartre! - Late Night Feeler
#sql #database

Пікірлер: 9
@IanBond007
@IanBond007 Жыл бұрын
Excellent, the pragmatic approach to mixing surrogate and natural keys is a winner.
@rydmerlin
@rydmerlin Жыл бұрын
I’ve seen both approaches and I far prefer surrogate keys when working with ORM. However they have their downsides and those are that data is less mobile between environments but I much prefer writing joins using a surrogate key than a natural key.
@berndeckenfels
@berndeckenfels Жыл бұрын
I agree with mixing, surrogate keys for entities and natural keys for lookups or dimensions. Sometimes it’s a bit blurry, like having a natural identifier (hr Id, order Id) #TeamUUID
@donschussolini792
@donschussolini792 Жыл бұрын
But what about your gender example with natural key in an Multi-lingual application? In germany we have w / m / d - in such cases a Natural key will have a greater impact than surrogate keys.
@berndeckenfels
@berndeckenfels Жыл бұрын
Totally legit reenactment of Twitter discussions on the topic
@DatabaseDude
@DatabaseDude Жыл бұрын
its a documentary :-)
@toomuchtube
@toomuchtube Жыл бұрын
This information is spot on. I don't why it must be one vs the other, and this argument has been going on for ages. There is a place for both. Now let's get even more in the weeds: UUID or Sequence?
@DatabaseDude
@DatabaseDude Жыл бұрын
plus the fact that there are now multiple types, sizes and formats for UUIDs now
The Catch-22 problem with gathering statistics
3:34
SQL and Database explained!
Рет қаралды 1,8 М.
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 21 МЛН
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 83 МЛН
Prank vs Prank #shorts
00:28
Mr DegrEE
Рет қаралды 10 МЛН
Magic? 😨
00:14
Andrey Grechka
Рет қаралды 20 МЛН
What is ETL | What is Data Warehouse | OLTP vs OLAP
8:07
codebasics
Рет қаралды 414 М.
Hash Keys vs Sequence Keys vs Business Keys
19:06
Scalefree
Рет қаралды 460
Internal queries KILLING my database!
7:22
SQL and Database explained!
Рет қаралды 2 М.
Why Surrogate Keys are used in Data Warehouse
7:03
aroundBI
Рет қаралды 139 М.
Keys in RDBMS
22:49
Neso Academy
Рет қаралды 316 М.
Clustered vs. Nonclustered Index Structures in SQL Server
8:04
Voluntary DBA
Рет қаралды 652 М.
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 21 МЛН