How row oriented and column oriented db works?

  Рет қаралды 41,020

Tech Dummies Narendra L

Tech Dummies Narendra L

4 жыл бұрын

There are two types of data storage database one is row oriented database and another one is column oriented database. It stores data table by row and common method of storing a table is to serialize each row of data. Row-based systems are designed to efficiently return data for an entire row, or record. In this video I am going to show exactly how the data is stored in memory.
#microservice #learnmicroservices #totorialssystemdesign #microservicestutorials
#systemdesigntips #systemdesign #computerscience #learnsystemdesign #interviewpreperation #amazoninterview #googleinterview #uberinterview #micrsoftinterview

Пікірлер: 121
@chakriadm1
@chakriadm1 4 жыл бұрын
Man, you are genius. I have been in IT for 15 years and hardly know 10% of what you know. Your explanation- how you touch basics and build on top of that is simply amazing. I really like how you are emphasizing conceptual knowledge. You rock.
@rhugvedchaudhari4584
@rhugvedchaudhari4584 2 ай бұрын
Hands down, the best explaination available, covering all the technical aspects. Genius!
@vikashmandir
@vikashmandir 4 жыл бұрын
I liked the topics getting covered by u. This channel is really helping me to understand system design concepts used in real world. Also it will be great if u cover the internals of a message queue.
@sanjayg2686
@sanjayg2686 3 жыл бұрын
You got great grip on the topic and deep understanding of data storage on the disk; simply you are the best and Great!
@ameyapatil1139
@ameyapatil1139 4 жыл бұрын
This is best explanation i have come across ! lucid ! swell !
@vrushali6044
@vrushali6044 4 жыл бұрын
Awesome explanation ..Keep it up
@JxKILLAA
@JxKILLAA 3 жыл бұрын
Starting to get back into to database work, this was an excellent video!
@shankarsr1
@shankarsr1 3 жыл бұрын
wow very good explanation
@srinivaskjakkula3868
@srinivaskjakkula3868 4 жыл бұрын
Great Video thank you for sharing your knowledge.
@awake8138
@awake8138 2 жыл бұрын
Really awesome.well explained 👏👏👏
@hemanthkch
@hemanthkch 2 жыл бұрын
Good one Naren, thank you for posting this.
@JoscelinTrouwborst
@JoscelinTrouwborst 2 жыл бұрын
Have watched several of these explanations. I feel your use of the white board stands out. Clear consistent and detailed explanation as well. Hat off :-) .
@sanjeevbc9784
@sanjeevbc9784 2 жыл бұрын
nicely explained
@Manishsharma-tj4nn
@Manishsharma-tj4nn 4 жыл бұрын
You are back, thanks
@mindcontrolkmc.3286
@mindcontrolkmc.3286 3 жыл бұрын
Both of your English and explanation are so clear. Thank you so much, bro!
@daleffi
@daleffi 11 ай бұрын
Thank you sir. I've worked with relational databases all my life. Since Cassandra started to be a trend back in the days, i was having a hard time to understand how exactly the concept of column family databases really works. Until today. Thank you very much.
@uboopathy
@uboopathy 3 жыл бұрын
Very good explanation
@joshreji7510
@joshreji7510 2 жыл бұрын
A brilliantly explained video. Thank you!
@csangora
@csangora 2 жыл бұрын
Superb explanation Narendra. Really understand the concepts
@haribaskarvengatasamy4531
@haribaskarvengatasamy4531 3 жыл бұрын
Fantastic. Very good explanation about Row Vs Column db's. Thanks Naren
@ragdoll2324
@ragdoll2324 3 жыл бұрын
Great video. Thanks for making it. It would be great if you can create more videos on the internals of databases, focusing each vdo on a different kind of database. Thanks!
@bactran7799
@bactran7799 2 жыл бұрын
very clear explanation of row-oriented and column-oriented database. Thank you very much
@nishanktripathi6589
@nishanktripathi6589 2 жыл бұрын
It was crisp and clear. Thank you so much for this awesome content 🥰
@akshay_g
@akshay_g 3 жыл бұрын
Good explaination
@senthilvs1723
@senthilvs1723 3 жыл бұрын
@narendra , good concise one. wish u do more . thanks
@RS-vu5um
@RS-vu5um 2 жыл бұрын
Excellent Explanation.
@dheemanthmallikarjun514
@dheemanthmallikarjun514 2 жыл бұрын
Great explanation 👏 keep it coming
@hariharamoorthythennetipan2190
@hariharamoorthythennetipan2190 2 жыл бұрын
You have explained the concept at the disk level, awesome work.
@soumyajitsinharoy
@soumyajitsinharoy 3 жыл бұрын
Very nice explanation.
@ShabnamKhan-cj4zc
@ShabnamKhan-cj4zc 3 жыл бұрын
Thanks a ton ton.. I have been looking for coloumn based db and how its better. This vid explained everything.. Thanks a lot ..Your every video give so much knowledge which cant be found under one video with explanation in simple way.. Thanks a lot narender for taking out time and making vidoes..
@bratwurstmitbiryani
@bratwurstmitbiryani 4 жыл бұрын
Dude you are great. Very nicely explained!
@tungtranvan1286
@tungtranvan1286 3 жыл бұрын
thank bro for sharing
@nazeers5684
@nazeers5684 17 күн бұрын
good video
@shanshanxu9978
@shanshanxu9978 3 жыл бұрын
very good, the best explanation I have seen so far.
@sureshiva4605
@sureshiva4605 8 ай бұрын
Cool explanation...Need more of your videos....Gonna check your whole playlist....
@SAW8149
@SAW8149 Жыл бұрын
You are a genius. I loved the way you explain the topic and how you relate the problem
@PiyushSingh-vx7bx
@PiyushSingh-vx7bx 3 жыл бұрын
Awesome video ❤️
@mainakchatterjee1720
@mainakchatterjee1720 Жыл бұрын
Woww..!! What an explanation..!!..It was really helpful...thanks..!!😇
@AyushSharma-bn2js
@AyushSharma-bn2js 2 жыл бұрын
Amazing video, I loved it.
@HaiNguyen-yr7md
@HaiNguyen-yr7md Жыл бұрын
it's so clear. thank you so much.
@arjunsharmaconnect
@arjunsharmaconnect Жыл бұрын
great
@rocktoyo69
@rocktoyo69 4 жыл бұрын
Great video, it helped me to understand my course from my university and helped me for my final exam, thank you
@srinathvangari8526
@srinathvangari8526 4 жыл бұрын
Well explained. Thank you
@hgaliza
@hgaliza 2 жыл бұрын
Thanks for the video! Very clear and concise explanation. 👍🏻
@hariomsharma5468
@hariomsharma5468 3 жыл бұрын
loved the way you explained
@richardglazer4686
@richardglazer4686 3 жыл бұрын
Great explanation, thank you!
@sj0387
@sj0387 3 жыл бұрын
Brilliant Explanation. Thanks Bro.
@rajpal7406
@rajpal7406 3 жыл бұрын
Nicely explained.. Thank you Narendra!
@sairajanagandula6478
@sairajanagandula6478 4 жыл бұрын
Thank you very much bro. You have explained it very clearly and at a beginner level. It helped me in while learning SAP HANA as well.
@deepjyotimitra1340
@deepjyotimitra1340 3 жыл бұрын
Detailed explanation. Thank you so much. All my doubts got cleared.
@mateuszkowaleczko6446
@mateuszkowaleczko6446 4 жыл бұрын
Thanks man. You explain it really well
@stnlylee
@stnlylee 3 жыл бұрын
nice video thanks
@edgarcheverier
@edgarcheverier 4 жыл бұрын
Thanks man, great explanation! would be awesome if you could do the same with document-oriented db!
@meghnath1993
@meghnath1993 4 жыл бұрын
+1 , would like to understand how you write queries for (row vs column vs document)
@nalamda3682
@nalamda3682 Жыл бұрын
+ 1
@stephyjacob1256
@stephyjacob1256 4 жыл бұрын
Take care man. Situation in Germany also not good due Coronavirus. Stay safe.
@TechDummiesNarendraL
@TechDummiesNarendraL 4 жыл бұрын
Sure, u too :)
@oldguywholifts
@oldguywholifts 4 жыл бұрын
Sincerely... good effort!!! 👍
@kyliexoo
@kyliexoo 10 күн бұрын
you're a great teacher!!
@jksharma7
@jksharma7 3 жыл бұрын
very clear understanding sir.
@shewafree
@shewafree 3 жыл бұрын
Thank you!
@YashChoudhari73
@YashChoudhari73 4 жыл бұрын
amazing explanation! :)
@amanpreetkaurkohli7288
@amanpreetkaurkohli7288 3 жыл бұрын
really very good explanation. Would like to see video on partitioning in future.
@AJEETVATE
@AJEETVATE 2 жыл бұрын
perfect ....
@nalamatigeetha2459
@nalamatigeetha2459 4 жыл бұрын
Got to knw much frm ur session. Thanks alot
@milindjadhav7420
@milindjadhav7420 4 жыл бұрын
I was looking for row vs column db and got very useful info.thanks.Could you please explain in terms of MPP and Cloud DWH if possible..😊
@AkashJadhavIT
@AkashJadhavIT 4 жыл бұрын
Thank you for all these amazing videos on systems design. We have learned great concepts from you sir. One request from my side. Would it possible for you to make a series on "object oriented design interview". Any resources you would recommend for the same?
@TechDummiesNarendraL
@TechDummiesNarendraL 4 жыл бұрын
It doesn't have to be contiguous always, blocks are distributed and memory allocation starts from different blocks and they are tracked by FS
@aneksingh4496
@aneksingh4496 4 жыл бұрын
very nice explanation . Thanks , I have been following your videos , Great effort . Please also suggest how do u prepare for these topics ,I mean what resources do you use .. that would be also great help !!! :-)
@freeopensource
@freeopensource 6 ай бұрын
Thanks a lot !!
@madaxe8894
@madaxe8894 3 жыл бұрын
Good.
@dconenana2986
@dconenana2986 2 жыл бұрын
This is wonderful and thanks very much. This is my first time ever commenting on a video lol .
@vivekmit
@vivekmit 3 жыл бұрын
Hi Narendra; You explained extremely well how we can choose the best-fit NoSql database based on our requirements. Do we have any other factor to decide best-fit NoSql database like, in case our application is write oriented or read oriented..I know the CAP theorem is another factor to decide best-fit NoSql db but wish to know other possible factors.
@AdityaJha94
@AdityaJha94 4 жыл бұрын
When one of the disk of shards in a database (either row oriented or column oriented) is full, what are the strategies to mitigate the situation?
@aravindmohandas
@aravindmohandas 4 жыл бұрын
Thats a great video. One question- How does indexing work in column oriented ?
@sj0387
@sj0387 3 жыл бұрын
An index is nothing but a column or a group of columns in a database. In a Column oriented database, you don't need an index. That is the beauty.
@nitinwadhawan6460
@nitinwadhawan6460 4 жыл бұрын
Hi, Great videos! Please also let us know the source of your knowledge? any books you recommend if someone wants to deep dive into the concepts.
@arshiabegum2706
@arshiabegum2706 10 ай бұрын
Thanku 😊
@vikramragunathan6392
@vikramragunathan6392 Жыл бұрын
I don't think anyone can explain better. Wow.
@ansh7627
@ansh7627 3 жыл бұрын
I am your fan
@ankushgats
@ankushgats 3 жыл бұрын
Hey Narendra, this is very helpful content and your voice is very relaxing. Just want to add a suggestion, I think we should have included: how data from one column is matched(linked) to data from another column, like how does db identifies what are the "number-of-requests" between time windows of 10.01 to 10.11.
@MC-wp2vz
@MC-wp2vz 2 жыл бұрын
the record id is always stored, so when you do the time query, you are getting from the time column all the record ids that matches the time requirement. Then it goes to the metric column you need. It reads all of them which might be partitioned, and then fetch data that has the same record ids
@kranthikumarjorrigala
@kranthikumarjorrigala 4 жыл бұрын
Very clearly explained. Thanks a lot. Can you make videos on Amazon redshift.
@GAURAVGUPTA-zu2bu
@GAURAVGUPTA-zu2bu 3 жыл бұрын
It will be nice to see a video on write ahead logs
@sambakorea
@sambakorea 2 ай бұрын
Nice blog with very clear explanations for row and columnar db storage patterns. Could you also blog the in memory data storage in both the cases rather than the HDD. I am not interested in seeing the recent HANA buzz around the ‘in memory’ data storage and retrieval. One more thing, in this blog you have mentioned about the scenarios that dictates how the data will be stored like transactional or analytical..but in HANA,I think it stores everything in columnar way, so are there any drawbacks in that? Appreciate your innate insight in this.
@akshatjain1559
@akshatjain1559 2 жыл бұрын
You are a genius dude! These little things get people 300-400K jobs in FAANGMULA!
@karmicveda9648
@karmicveda9648 2 жыл бұрын
👏
@parveenpandit168
@parveenpandit168 3 ай бұрын
Wow.. so far this is the best explanation I have seen. Thank you so much. I have one query, I am still not able to understand, how insertion happens in columnar database, if, there is no space left in a block and next block has data of another column. It will be great if you put some light on the this. Appreciate your help.
@saiprasad84
@saiprasad84 Жыл бұрын
Great video. I have 2 questions. 1) What will happen if we usually fetch 2 columns at the same time? Like the time and number of requests in your example? 2) Which database has better performance with DML operations like update and delete? You talked about inserts - can you please talk about updates/deletes also please?
@meghasharma3092
@meghasharma3092 4 жыл бұрын
Now i understood why my architect always asks not to do any analytics query on transactional DB :)
@akshatjain1559
@akshatjain1559 2 жыл бұрын
How do you large and hot partitions in Columnar DB, since one column could contain data that is huge (Large strings) or hot (More frequently accessed than others)
@sahilbajaj2190
@sahilbajaj2190 Жыл бұрын
Question: Incase of column oriented writes, what if current block gets fulled & next consecutive block is also fulled. So, does it shifts all the blocks or how does it actually work & maintain all the blocks at different places for a particular column ?
@RandomShowerThoughts
@RandomShowerThoughts Жыл бұрын
does does a columnar database handle multiple where requests? Does it keep track of the subset at each fliter?
@stoneshou
@stoneshou 4 жыл бұрын
Is it fair to say column oriented for OLAP vs row oriented for OLTP
@nitinkulkarni7942
@nitinkulkarni7942 4 жыл бұрын
In your example, how is the following requirement met, all the response times between 10 am and 10:30am...I understand all the times are stored together in a series of one or more blocks and all the response times are stored together, the same way. So how are the time range matched with the response time range and returned back? In other words, since the time blocks are stored separately and response times are stored separately, who does the job of saying 10 and 10:30 am matches to 200, 300 and 350 ms of response times?
@obinnaubah9045
@obinnaubah9045 3 жыл бұрын
I was wondering the same thing.
@RiteshMalav
@RiteshMalav 3 жыл бұрын
Actually along with the data you will always associate the ID, that way first you query all the time and know the ID's that you need to query after that you can query another column like response times or error count. Thing to remember (it stores ID as well along with the data).
@nitinkulkarni7942
@nitinkulkarni7942 3 жыл бұрын
@@RiteshMalav i dont thin that how it will work. What i found out later is that the first time in my query response will match the 1st response and so on......
@RajaKumar-sj3et
@RajaKumar-sj3et 2 жыл бұрын
Almost all of the row vs column store explanations on the internet do not explain this point well, but they think they are doing a wonderful job of explaining the concepts to the audience but just fail to explain this simple point. LOL! I think what Ritesh Malav explained below makes sense that the ID is also stored together in the column store so that the individual data values are married together to make sense as meaningful piece of record instead of isolation.
@skc2020
@skc2020 2 жыл бұрын
@@RajaKumar-sj3et Completely agree with you & Ritesh. Logically each column should have ID attached to it. But that crops up other questions. 1. How come column encoding works if ID is attached ? 2. How RLE encoding distinguishes columns of different records ? 3. In most of the columnar DB's (like Redshift, Vertica), we don't mention primary keys - Then how does the columns of a single row gets tied up ? I was waiting for these explanations in this (nth) video but no luck !!
@atulkumar-bb7vi
@atulkumar-bb7vi Жыл бұрын
Thanks bro for very amazing explanation. but couple of questions. 1. How would this work in case of SSD devices? & When columns data updated, how it refer the updated values somewhere else for same column coz, it is very common to update the column data as well in analytics applications as new data keeps coming??
@anandperi7060
@anandperi7060 Жыл бұрын
So basically how are these Column data across the blocks linked... for example the traffic and errors need to be plotted with the time. So there is a relationship that needs to be maintained with some kind of a key right? How is that being done?
@prabhakaradhulipalla1162
@prabhakaradhulipalla1162 3 жыл бұрын
how does it store null values for any given row in CF db?
@gauravmittal451
@gauravmittal451 2 жыл бұрын
I just laughed at the scalar academy ad which came during the video.
@gauravkhurana420
@gauravkhurana420 4 жыл бұрын
What if previous block is completely filed by one column and next block is completely filled by another column,then how we manage to put data of next row?
@TechDummiesNarendraL
@TechDummiesNarendraL 4 жыл бұрын
Memory allocation doesnt always happen contiguously, OS finds other locations and store it there and tracks it. For this you need to read memory management in operating systems
@sanketh768
@sanketh768 4 ай бұрын
so it means writes are slower in columnar DB's compared to row oriented DB'S ?
@gauravkhurana420
@gauravkhurana420 4 жыл бұрын
every database have the ability to store row wise and column wise both?OR Different database works differently?
@TechDummiesNarendraL
@TechDummiesNarendraL 4 жыл бұрын
It's different use cases and different databases. Row oriented: MySQL postgres Col oriented: Cassandra, mriadb, sap Hana, hbase
@gauravkhurana420
@gauravkhurana420 4 жыл бұрын
@@TechDummiesNarendraL Thanks Man,Appreciate your Hardwork...
@anandperi7060
@anandperi7060 Жыл бұрын
I'm under the impression the Data Load times for a Data Warehouse is critical ... if a table has 50 columns by your definition there is 50X extra IO... is this really the case and the load times are that much slower?
@improbabilityphysics8404
@improbabilityphysics8404 3 жыл бұрын
I guess when storing column based data, the ID column should be saved as well?
@user-cz8nd5jy7m
@user-cz8nd5jy7m Жыл бұрын
Do you have notes for this video?
@TheCosmique11
@TheCosmique11 4 жыл бұрын
So are nosql databases always columnar DBs?
@TechDummiesNarendraL
@TechDummiesNarendraL 4 жыл бұрын
Yes, but there are other kinds like document, graph and keyvalue
@AdityaJha94
@AdityaJha94 4 жыл бұрын
Row oriented: MongoDB,Redis,Aerospike ColumnOriented:Cassandra,Influx,HBase
EFFICIENT COUNTING USING BITMAPS FOR SYSTEM DESIGN
12:55
Tech Dummies Narendra L
Рет қаралды 13 М.
In Memory databases internals for system design interviews
34:59
Tech Dummies Narendra L
Рет қаралды 39 М.
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 13 МЛН
Cat Corn?! 🙀 #cat #cute #catlover
00:54
Stocat
Рет қаралды 15 МЛН
БОЛЬШОЙ ПЕТУШОК #shorts
00:21
Паша Осадчий
Рет қаралды 11 МЛН
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 55 МЛН
Data corruption and Merkle trees
22:43
Tech Dummies Narendra L
Рет қаралды 26 М.
Learn System design : Distributed datastores | RDBMS scaling problems | CAP theorem
21:08
Database Sharding and Partitioning
23:53
Arpit Bhayani
Рет қаралды 71 М.
What is a Columnar Database? (vs. Row-oriented Database)
8:20
Anton Putra
Рет қаралды 1,8 М.
Paste bin system design | Software architecture for paste bin
31:20
Tech Dummies Narendra L
Рет қаралды 65 М.
Episode 2: Row vs Column Store
6:09
Databases Demystified
Рет қаралды 24 М.
Transactions Internal implementation write ahead log and locks with banking examples
20:39
Column vs Row Oriented Databases Explained
34:16
Hussein Nasser
Рет қаралды 74 М.
The Tragedy of systemd
47:18
linux.conf.au
Рет қаралды 1,1 МЛН
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 13 МЛН