How Do Databases Store Tables on Disk? Explained both SSD & HDD

  Рет қаралды 29,804

Hussein Nasser

Hussein Nasser

Күн бұрын

Пікірлер: 72
@nekoill
@nekoill 2 жыл бұрын
My man, I gotta say I love the way you present information. I'd love to be your neighbor and spend time just rambling on about curious IT stuff.
@timothyruszala4973
@timothyruszala4973 Жыл бұрын
What an amazing speaker-You're most engaging speaker on software engineering I've ever seen!
@yashbudukh340
@yashbudukh340 4 жыл бұрын
Amazing content man.Please make a video on sql vs no-sql and when to choose which.
@shubhamgupta-to7so
@shubhamgupta-to7so 4 жыл бұрын
Thank you so much Hussein Very Informative. Never knew this before. Btw the sound effect at 02:52 was exactly the same when I do I/O stuffs in my system. hahahaha
@8Trails50
@8Trails50 4 жыл бұрын
This channel is a goldmine
@abhirishi7
@abhirishi7 4 жыл бұрын
I mostly watch your videos to hear your accent..its super cool. and besides you provide some really good information too.
@sundaramjha1776
@sundaramjha1776 4 жыл бұрын
Thank You for making this video. I have requested for it. Keep sharing ur knowledge with us.
@hnasr
@hnasr 4 жыл бұрын
Sundaram Jha yes it was great suggestion! Video is getting popular.
@harshgandhi4328
@harshgandhi4328 4 жыл бұрын
Awesome content Hussein. Thanks a lot. Can you make a video as to how memory management works in NodeJs/Chrome V8?
@butterhalves4262
@butterhalves4262 17 күн бұрын
Awesome as always
@pokiripandoo
@pokiripandoo 4 жыл бұрын
Respect for the PS on the back ❤️
@hemantsinghjadon849
@hemantsinghjadon849 2 жыл бұрын
Really informative. Would love to see some examples of this actually affecting the engineering decisions companies made.
@mohammadjahanb7792
@mohammadjahanb7792 Ай бұрын
perfect explanation👌
@jondoe79
@jondoe79 4 жыл бұрын
Superb content as always 👌
@davidraj2862
@davidraj2862 4 жыл бұрын
Amazing absolutely love your content 👌🏻
@AnantaAkash.Podder
@AnantaAkash.Podder 9 ай бұрын
Wow... Amazing content sir...😃
@dudibs1
@dudibs1 10 ай бұрын
great intuitive explanation. thx
@amitmahadik4653
@amitmahadik4653 Жыл бұрын
Really great explanation, just curious to know how cloud storage stores data
@AbleToLiveHere
@AbleToLiveHere 4 жыл бұрын
Great video. As usual. Thank you.
@hnasr
@hnasr 4 жыл бұрын
My pleasure!
@rahulspoudel
@rahulspoudel 2 жыл бұрын
Keep up the great work man. 2:51 LMAO
@singaravelann3671
@singaravelann3671 4 жыл бұрын
Thanks for this video, Can you explain why RAM is faster than disk seek and can you explain how the data are organized in ram.
@allanguwatudde7623
@allanguwatudde7623 2 жыл бұрын
Ask ChatGPT
@ashutoshmishra2328
@ashutoshmishra2328 4 жыл бұрын
Hey Hussein, thanks for this video 😃 Can you make a video on clustered and Nonclustered indexes also, it has a major role in storing records of tables in memory and it is bit complex. I tried to understand it but didn't understand much. It'll be great if you can make a video about it. Thanks 😃
@hnasr
@hnasr 4 жыл бұрын
Great topic
@code_bee-z9m
@code_bee-z9m 5 ай бұрын
Great Content. Thank. Could you please clear the below queries - Can I access or view data directly from disk that is saved by PostgreSQL or another schema, given that I have full access to the disk? - How can I view the meta file that saves the block address and row ID? - And when I try to update one record (4 bytes) from 1.5B to 2B, will it rewrite the entire 512-byte block or only the 4-byte data within the block? It would be really helpful if you could show those details in PostgreSQL or any other graphical real-time representation.
@jackedelic9188
@jackedelic9188 3 жыл бұрын
so does it mean given a choice, i better use LSM-indexing db engine (cus btree rebalancing killing ssd)? How easy/hard isit to switch db engine?
@lieblius
@lieblius Жыл бұрын
Great video explaining things at the OS level, but aren't databases interfacing with file system api's to abstract this all away? I don't really understand the reason to bring databases into the conversation here. Edit: I see this is part of a database engineering playlist. I think it would have been clear to me if the OS level was mentioned a bit instead of jumping straight from database to what happens on disk. That made me think for a second that database implementations were mainly going straight to I/O instead of using the native OS tooling. I was looking for explanations on how databases handle concurrency when writing to files as well as explanations on the format in which the files are stored.
@euriskoo
@euriskoo 3 жыл бұрын
Hello Hussein, why do we need to the virtual memory when we retrieve a data from a disk?
@timbui5556
@timbui5556 2 жыл бұрын
Hi Hussein, how can I put my Postgres data on a portable SSD so that I can use the Postgres on my desktop and laptop without restoring? Thank you so much for your teaching!
@saurabhsharma7123
@saurabhsharma7123 4 жыл бұрын
Keep up the novel work. Hats-off!
@shobhitmittal77
@shobhitmittal77 2 жыл бұрын
Awesome Content Sir.. Reminded of The Joker in Dark Knight!!
@9831599481
@9831599481 4 жыл бұрын
Ur videos are dope
@420_gunna
@420_gunna 4 жыл бұрын
Yeeesssss Hussein. I don't remember if i recommended this, but you have _GOT_ to take Andy Pavlo's database systems and advanced database systems courses on KZbin from CMU. Best class I've taken, covers a lot of things (esp the advanced course) that I think you, me, and a lot of people here find interesting. Enjoy!
@420_gunna
@420_gunna 4 жыл бұрын
First lectures of each here: Intro: kzbin.info/www/bejne/pZa8c5edncZ8oMU Advanced: kzbin.info/www/bejne/iZW6ZoWBiseigcU
@420_gunna
@420_gunna 4 жыл бұрын
Also, the MIT 6.824 Distributed Systems course on KZbin. Taught by Robert Morris, the inventor of the first computer worm! (Also the UWaterloo and UCSC Distributed systems courses aren't bad ;) )
@420_gunna
@420_gunna 4 жыл бұрын
Oh by the way designing data intensive systems by Kleppman and Database internals by Petrov are must reads! :)
@hnasr
@hnasr 4 жыл бұрын
Sam Silver Awesome ! Thanks Sam for sharing
@techwithameer
@techwithameer 4 жыл бұрын
Awesome infos bro
@abhishekhamal3126
@abhishekhamal3126 Жыл бұрын
How can I learn more on what you are talking about?
@sameerakhatoon9508
@sameerakhatoon9508 8 ай бұрын
text books
@youtubewatcher5500
@youtubewatcher5500 3 жыл бұрын
How the database programm can find the beginning of the block on the disc?
@snake1625b
@snake1625b 2 жыл бұрын
Is the extra speed of the SSD worth the extra cost?
@section9999
@section9999 4 жыл бұрын
Very useful stuff. 👍 But I have a question! Would you mind sharing the link @15.42? I was thinking of building a project for DB algorithm visualization so I want to make sure its both distinguishable from that and useful in a practical sense for the average DB student and professional.
@hnasr
@hnasr 4 жыл бұрын
Sure thing! www.cs.usfca.edu/~galles/visualization/BTree.html
@section9999
@section9999 4 жыл бұрын
@@hnasr Cool man i greatly appreciate that!
@AAZinvicto
@AAZinvicto 4 жыл бұрын
People, If you want to do a deep dive into Databases, search for "CMU Database Group" on youtube. Great video Hussein! Keep it up!
@hnasr
@hnasr 4 жыл бұрын
Thanks !! Yes Sam shared the resources those are excellent. 😊
@hnasr
@hnasr 4 жыл бұрын
Thanks !! Yes Sam shared the resources those are excellent. 😊
@AAZinvicto
@AAZinvicto 4 жыл бұрын
@@hnasr Oh, didn't notice. :D
@lucavogels
@lucavogels 4 жыл бұрын
How do Key-Value stores actually store the data on this? Because size per entry isn’t that fixed as in relational DBs
@5_inchc594
@5_inchc594 2 жыл бұрын
"It reads the hold god damn block ." hhhh your video is funny, thanks for the explaination .
@MuztabaHasanat
@MuztabaHasanat 4 жыл бұрын
It's a damn good video!
@apusingh1967
@apusingh1967 2 жыл бұрын
yo' grt Nasser lv u there is some confusion HDD sector size is mostly 512 BYTE, and OS reads in sectors nothing less.. so OS blocks are same as sector looks like. SSD doesn't have sectors. It has pages and blocks. The block size is mostly 512 KILO BYTE! Pages are usually 4 KILO BYTE. So one block has 128 pages in SSD. OS running in native mode will read/write in pages looks like. But garbage collection etc will work with blocks, since updates are rather intensive as you mentioned.
@arjungambhir94
@arjungambhir94 3 жыл бұрын
Lovely, great content ❤️, can I know some of the names of books behind you? Looks so interesting
@hnasr
@hnasr 3 жыл бұрын
Thanks 🙏 Sure I made a video kzbin.info/www/bejne/a2q9ZHeiiNprqrc
@suryabhusal1527
@suryabhusal1527 4 жыл бұрын
Hello sir, i really enjoy your videos. Those content are rerely found while entering into microservice jungle :P. But i've one issue. I've watched your all backend engineering playlist. But i'm still confused on how to implement Saga Orchesteration using RabbitMQ. Please Please i need this!! Thank you for such wonderful videos. Love Love !!!!!
@RahulSharma_rsconcept
@RahulSharma_rsconcept 4 жыл бұрын
Amazing content! :) Just to add to the last mention on Rocksdb, from what I have read. RocksDB is a fork of LevelDB, which itself is an open source storage engine implementation off from Google Bigtable’s tablet storage engine (proprietary ). But yeah, each of these system’s underlying data structure is an LSM Tree. They give you higher write throughput vs BTrees which performs better for reads.
@hnasr
@hnasr 4 жыл бұрын
Rahul Sharma thanks Rahul For the additional info! Correct! RocksDB is a fork of Level I mentioned that on my database engine video Database Engines Crash Course (MyISAM, Aria, InnoDB, XtraDB, LevelDB & RocksDB) kzbin.info/www/bejne/gWq0lWaLgq2Ih5Y
@janetachieng8990
@janetachieng8990 3 жыл бұрын
very nice,got it
@bhys570
@bhys570 10 ай бұрын
Can someone explain to me why he said the data is stored on four bytes
@montassar_akrmi
@montassar_akrmi 2 жыл бұрын
Are you really appreciate the tech behind it? What does "ugly disk" even mean?
@fatememalekan3522
@fatememalekan3522 3 жыл бұрын
that was perfect
@prashanthkumar0
@prashanthkumar0 Жыл бұрын
This video is really scary , much scary than watching insidious , Reason: Just upgraded my hdd to ssd and going to learn dbms by making one ( using B-Trees ).
@jameskennedy674
@jameskennedy674 3 жыл бұрын
Nice video. However all the sound effects do not add anything to the content, or provide comedic effect.
@thinkingcitizen
@thinkingcitizen 10 ай бұрын
had to hit pause within the first few minutes to imagine a beautiful table.... 10 mins later, still nothing...
@aman2426
@aman2426 2 жыл бұрын
How many accents...italian, french, german, indian, arabic..
@mailoisback
@mailoisback 5 ай бұрын
It's hard to follow when you're just talking. It would be much better if you had a digital pen and drew on the screen while explaining.
@miresoman1769
@miresoman1769 2 жыл бұрын
Sorry bro but 'sasta' Zayn Malik
@dancingdev1088
@dancingdev1088 Жыл бұрын
Why does he act like Neil degrasse tyson?
@vaibhavkumargautam
@vaibhavkumargautam Жыл бұрын
Bkl sahi se padhna sheekh.
Concurrent Requests and Unique  Keys on Web Applications
8:30
Hussein Nasser
Рет қаралды 7 М.
Best Practices Working with Billion-row Tables in Databases
13:41
Hussein Nasser
Рет қаралды 71 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
When should you shard your database?
21:20
Hussein Nasser
Рет қаралды 80 М.
MongoDB Internal Architecture
43:25
Hussein Nasser
Рет қаралды 92 М.
Storage Media Life Expectancy: SSDs, HDDs & More!
18:18
ExplainingComputers
Рет қаралды 560 М.
How do Hard Disk Drives Work?  💻💿🛠
15:16
Branch Education
Рет қаралды 2,3 МЛН
The effect of Random UUID on database performance
18:51
Hussein Nasser
Рет қаралды 72 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН