Тёмный

Database Design 26 - Should I use Surrogate Keys or Natural Keys? 

Caleb Curry
Подписаться 624 тыс.
Просмотров 27 тыс.
50% 1

Start your software dev career - calcur.tech/dev-fundamentals 💯 FREE Courses (100+ hours) - calcur.tech/all-in-ones
🐍 Python Course - calcur.tech/python-courses
✅ Data Structures & Algorithms - calcur.tech/dsa-youtube
~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
✉️ Newsletter - calcur.tech/newsletter
📸 Instagram - / calebcurry
🐦 Twitter - / calebcurry
🔗 LinkedIn - / calebcurry
▶️ Subscribe - calcur.tech/subscribe
👨🏻‍🎓 Courses - www.codebreakthrough.com
~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~
↪ My Amazon Store - www.amazon.com/shop/calebcurry
🅿 Patreon - calcur.tech/patreon-calebcurry
🅖 GitHub Sponsors - github.com/sponsors/CalebCurry
Ⓟ Paypal - paypal.me/calcur
🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
📈 Buy Bitcoin - calcur.tech/crypto
Reserve the Ruby Steel crypto rewards card and get a $25 bonus (use affiliate code "Caleb") - calcur.tech/crypto

Наука

Опубликовано:

 

8 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 25   
@Professor__Cow
@Professor__Cow 2 месяца назад
Caleb - Your theatrics were adorable and make these videos entertaining!
@MariuszKlinikowski
@MariuszKlinikowski 6 лет назад
Yes, you're saving some space with natural keys, but surrogate keys, like just number (integer) are faster during comparisons. Like you need to compare 4 bytes of integer versus 10-11 for string "CelebCurry\0". Databases grows big, so it's more and more important to use numbers, because actualy indexes are usually smaller with integers than strings. :) Anyway - good videos.
@TheSkepticSkwerl
@TheSkepticSkwerl 5 лет назад
TBH i think it comes down to the size. I bet Facebook would be best with user names. But a smaller database, say a few million, would be better with id's
@PravinJanjal92
@PravinJanjal92 7 лет назад
Your explanation is the best!
@Andrew300082
@Andrew300082 6 лет назад
Your videos are very helpful to me for doing my homework. Thank you!
@codebreakthrough
@codebreakthrough 10 лет назад
Should you use Surrogate Keys or Natural Keys? Watch this video to find out! buff.ly/V1CEvh
@cassondrad2280
@cassondrad2280 2 года назад
Thanks Caleb, Great way of breaking it down for better understanding.
@VelevGeorgi
@VelevGeorgi 8 лет назад
regardless this kid looks pretty much high at the beginning of this video I like the way explanation. Nice and simple
@ScottDamery
@ScottDamery 9 лет назад
Would you say that you should use Natural Keys for User interfaces and 3rd party services. Use Surrogate for internal db keys. I am looking at creating a trigger that creates a surrogate key when the columns for a natural key change...because I am also creating a type 2 scd table.
@Ejun0
@Ejun0 Год назад
Hi Caleb, you got to go back to the chalk board or white board. These videos are great and love your humor throughout them! Much love from NC
@davygriffiths8581
@davygriffiths8581 7 лет назад
Hi Caleb, thanks for your videos. V helpful. I'm a bit confused around the difference between Natural and Surrogate key. A natural key is basically a collection of columns that if concatenated would yield unique rows in table, which is effectively the same as adding a unique ID as a proxy for those columns. Wouldn't you always need to know what the natural key would be to establish a surrogate key? Thanks
@codebreakthrough
@codebreakthrough 7 лет назад
+davy Griffiths Hi! You can just add a surrogate 🔑 if you do not have enough data to make a natural one.
@sajadsh8260
@sajadsh8260 3 года назад
thank you , very good
@Cheece777
@Cheece777 7 лет назад
Hey Caleb, awesome video series, really helped me understand the basics of Database management systems. However... Seriously do you only have t-shirts with stars and stribes?! :D
@VeraxMusic
@VeraxMusic 6 лет назад
What was that noise at 3:16?
@PravinJanjal92
@PravinJanjal92 7 лет назад
Surrogate key is the best! Only limited to the application and it will not deal with the client in real business world
@s-w
@s-w 2 года назад
Wow, this video has surrogacy ads on it, cause I'm obviously interested in surrogacy lol.
@lazykitten4356
@lazykitten4356 5 лет назад
omg, you are so cute. I wish my bf in highschool was as cute as you :P
@AssassinLab
@AssassinLab 3 года назад
Very cool video but i thing that you need a little social culture. DB & developering is not all in your live.
@tibretin
@tibretin 7 лет назад
Sorry Caleb, at speed 0.5 you are on drug bro. Make me laughs...sorry, I'm out. Keep up the good work
@wesleybarnes5376
@wesleybarnes5376 5 лет назад
Whaha at 09:05 especially!
@sufiyaanrajput7533
@sufiyaanrajput7533 4 года назад
Actually you should try . 25
@kuruchan69
@kuruchan69 3 года назад
lol
@mohammedfalih8713
@mohammedfalih8713 3 года назад
@@sufiyaanrajput7533 😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂
Далее
Database Design 27 - Foreign Key
12:39
Просмотров 39 тыс.
Database Design 23 - Superkey and Candidate Key
19:15
To Surrogate Key or Not...
3:55
Просмотров 15 тыс.
Twitter Wars! Natural vs Surrogate Keys
6:30
Просмотров 1,5 тыс.
What is a MESSAGE QUEUE and Where is it used?
9:59
Просмотров 951 тыс.
Git MERGE vs REBASE
16:12
Просмотров 1 млн
SQLite3 in Node with better-sqlite3
12:08
Просмотров 4,8 тыс.
Database Design 20 - Introduction to Keys
12:55
Просмотров 30 тыс.
Acer Predator Тараканьи Бега!
1:00
Просмотров 285 тыс.
Сложная распаковка iPhone 15
1:01
Просмотров 15 тыс.