Тёмный

Introduction to NoSQL databases 

Gaurav Sen
Подписаться 593 тыс.
Просмотров 778 тыс.
50% 1

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

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 794   
@tarunpothulapati3425
@tarunpothulapati3425 5 лет назад
Great Video! A small point to add, Most of the NoSQL offerings also offer, Consistency levels for users to choose. So, If I want to make sure my users read always consistent data I can have strong consistency which means a write is acknowledged only when a quorum of replicas have also acknowledged it. This makes sure, consistency is present even when one of the replicas go down. But obviously the tradeoff is the writes are slow. If availability is preferred over consistency, then Eventual consistency can be choosen in which the writes are acknowledged when the present replica writes it in memory, hoping that all other replicas catch up with the write "eventually" .
@gkcs
@gkcs 5 лет назад
Agree! This is what allows us to aggregate and read fast on NoSQL. I made a mistake in the video by stating that reads are slow. Reads are in fact faster in NoSQL than standard RDBMS as long as consistency requirements are relaxed.
@lakshaysagarrana3965
@lakshaysagarrana3965 5 лет назад
a great summary of cap ❤️✔️
@InvestWithRishi
@InvestWithRishi 5 лет назад
Writes are fast in Cassandra if replication factor is local_One. Although if you change it to quorum then obviously it adds to the throughput of the transaction. It’s all about the system requirement at the end of the day. 😃
@ananyasharma1201
@ananyasharma1201 4 года назад
@@gkcs Has anything changed with MongoDB 4.2, are the writes any faster considering we get to keep our consistency? Also, We know that NoSQLs go for Availability over Consistency but with MongoDB 4.2, you can guarantee the consistency and also I get to keep my availability by scaling across many shards. MongoDB 4.2 (FULLY ACID ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-iuj4Hh5EQvo.html) They claim that they're "the only database to fully combine the ACID guarantees of traditional relational databases with the speed, flexibility, and power of the document model, and an intelligent distributed systems design to scale-out and place data where you need it." (www.mongodb.com/collateral/mongodb-multi-document-acid-transactions) Which also puts me to a question that why should I use RDBMS over MongoDB when with horizontal scaling I will have a hard time but with MongoDB 4.2 it's built-in with all it brings. Does MongoDB > RDBMS in 2020 after the 4.2?
@mdxytop
@mdxytop 4 года назад
@@ananyasharma1201 "why should I use RDBMS over MongoDB " -> because MongoDB is buggy as fuck. It's not reliable.
@andys7384
@andys7384 5 лет назад
It is a difficult skill to be able to understand/comprehend the lower layers of a given technology AND also be able to present it in a clear, concise manner that many can grasp. You have this skill and are able to present the data in a way that is simple with stacks that are complex. This is why being an "instructor" or "presenter" requires skills beyond just knowing the technology really well. Anyway, I appreciate the videos as its a wealth of valuable information!
@gkcs
@gkcs 5 лет назад
Thank you!
@MdSheraj
@MdSheraj 3 года назад
In Cassandra, “strong consistency” is typically expressed as W + R > RF, where W is the write consistency level, R is the read consistency level, and RF is the replication factor.
@karthikeyansrinivasan52
@karthikeyansrinivasan52 4 года назад
When a Non DB guy can understand this.... there is nothing else as better ! Thanks a Ton for you Videos. Your Videos are one of the things that helped me through 2020 Lockdown.
@azurelearningsimplified1349
@azurelearningsimplified1349 3 года назад
Was just randomly browsing to know about NOSQL and I must say i couldn't move forward without watching full video and I feel confident with the concept. Thank you Gaurav
@juancpgo
@juancpgo 5 лет назад
Sir, you are truly a great teacher. Thanks for sharing your knowledge so wisely.
@gkcs
@gkcs 5 лет назад
Thank you!
@vaibhavsouveer
@vaibhavsouveer 3 года назад
Great video Gaurav. You have simplified it so much. I have one doubt though... At 6.20 when you are mentioning the 4th point, you say NoSQL are good for metrics/analysis, etc. because it easier to perform operations like average age, total salary, etc. At 7.30 you are saying these are not read optimized because data will have to be read from each blob of data and then perform some operation like sum or average. I am confused about this part.
@老谈
@老谈 2 года назад
This is misleading. Not all NoSQL store data as a key-value pair. What you are talking about is only a subset of NoSQL. There are 4 meain types of NoSQL databases: Document, key-value, wide-column and graph.
@Happymejoyus
@Happymejoyus 4 года назад
wow, I am understanding now many things which I had already worked on and faced the technical issues and never used to get the "why" part from my architect's talks. Thank you Gaurav.
@paulkersey2424
@paulkersey2424 3 года назад
Then you were never an actual architect. Most people think they are architects, it takes time... Unless you got 20 years in multiple industries, companies, environments you can't be truly an architect. Working in MS, JAVA, WEB, Service, Networking, Infrastructure, CICD, UX, Security from every possible way I think I have a better understanding. This video is your novices or juniors not architects
@Happymejoyus
@Happymejoyus 3 года назад
@@paulkersey2424 I'm not.. I was a developer. I mean to say.. my project's architect - my boss. 😳
@pallavisingh2912
@pallavisingh2912 5 лет назад
You've made System design a real fun concept to read about! Thanks a lot
@gkcs
@gkcs 5 лет назад
Thanks Pallavi!
@karthikb6828
@karthikb6828 4 года назад
Hi Gaurav, Thanks for this great video and all other videos. I'm extremely benefiting by your videos. Basically, I'm a Mechanical Engineering graduate, with zero CS/dev background but currently work as a Technical Writer with one of top technology Giant in the world. I want to transition to product management and one of areas I lack is technical design. Yours videos are helping me in those aspects. Kudos your great effort. Appreciate every bit of it.
@gkcs
@gkcs 4 года назад
Thanks Karthik!
@learnandsharelive
@learnandsharelive 4 года назад
How I look RDBMS and NoSQL databases are used based on the requirements or use cases. So, while designing any application we need to understand them first which @GS has done very well. I love your presentation skills @GS and I won't mind mentioning the same in your videos. Keep it up👍
@designrknight
@designrknight 4 года назад
Just to put an example, Royal Bank of Scotland uses MongoDB, a No-SQL database. So both SQL and No-SQL are in present day screnario, equally lucrative
@amith1989
@amith1989 4 года назад
This is the first video of yours that I saw but amazing way of explaining bro. This video is great for someone like me who had absolutely zero idea about NoSQL Databases since I have always worked with Relational Databases only. Subscribed!
@viveksharma9564
@viveksharma9564 4 года назад
Damn!! why does liking something complex gives me a vicarious feel of being intelligent?
@KartheekGanesh
@KartheekGanesh 5 лет назад
"Why don't we become optimists as engineers?" 🤣🤣 Yea right I wish. Thanks for the upload !
@gkcs
@gkcs 5 лет назад
Hahaha 😛
@jksharma7
@jksharma7 5 лет назад
Mr. Gaurav..... You are a BORN TEACHER Sir.... Thanks.
@gkcs
@gkcs 5 лет назад
Thank you!
@togadiadarshan4732
@togadiadarshan4732 2 года назад
Great video. It helps a lot to understand the system design concepts. Can you please make a video on how node and react use event-driven architecture?
@gkcs
@gkcs 2 года назад
Thank you! I have one on event-driven architecture here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-rJHTK2TfZ1I.html
@starkhunt2684
@starkhunt2684 2 года назад
Bro you should upload 1 min or 30 sec separate video of that intro clip which discusses Difference between NOSQL & SQL!! It is great🤣🤑
@amitjain561
@amitjain561 5 лет назад
Very informative video. In continuation would be nice if we would cover scenario or use case in which column or document or graph are best suited. What should be our cheatsheet while choosing DB among (Cassandra, MongoDB, Neo4J, RAIK etc.)? Just a small note, when we do update in Cassandra, not the entire row is managed only the column which got updated is/are kept in MemTable later consolidated into SSTable.
@gkcs
@gkcs 5 лет назад
Interesting point. The next topic has been voted for by the community to be: Master Slave Architecture. Once it's done, I will conduct another poll. Let's see when we hit graph databases 😁
@amitjain561
@amitjain561 5 лет назад
@@gkcs Thanks for swift response, if we compare case by case when to go with Document-based/Column-based/Key-Value-based/Graph-based then nothing like that. MySQL do have JSON datatype since 5.7, If storing everything in single JSON - mysql do also have support. If we pick few scenario and do the data modeling / designing with different family document/column/key-value/graph and try to understand for which use case which is best suited & why? Please suggest if you come across any such article? Thanks again.
@mufty9006
@mufty9006 2 года назад
The intro was extra fun😀 and educative I LOVE IT❤😂
@ravindracute
@ravindracute 4 года назад
I really like the way you explain Gaurav....
@ravindracute
@ravindracute 4 года назад
I have been extensively working on Cassandra and it is really a boon for NoSql DB
@dharmaraja41
@dharmaraja41 3 года назад
First off, great video, must have taken a lot to put together I have been in this field since 1992, and I have seen it all, mostly. The Crays, the rdbms, object oriented Nosql dbs and so on. I tell you though, you can’t do a lot of stuff you can in rdbms with nosql. And yes the other way is also true. Each has its place and application. You can expect rdbms to stay for another 30 or so years at the least! Anyways, great video, keep up the good work.
@denniszenanywhere
@denniszenanywhere 5 лет назад
Best explanation of nosql and mysql
@saurabhsingh7020
@saurabhsingh7020 5 лет назад
Hi Gaurav, Really nice video. It must have taken lot of effort. One point, Consider situation of altering a table and adding salary column. In SQL it will acquire lock and slow the process. In NoSql it will faster. But column won't be added in all pre existing documents. In will break backward compatibility if user tried to fetch salary from any pre existing document. Thanks
@gkcs
@gkcs 5 лет назад
Thanks Saurabh! Yes it would, and that's one of the issues with constraint addition here. A check for null with a default value could be added in the application layer perhaps?
@saurabhsingh7020
@saurabhsingh7020 5 лет назад
@@gkcs Hi Gaurav, In SQL queries present in our code will throw ColumnNotFound. Don't know how we fetch in NoSql. Maybe due to json structure, we get that flexibility.
@gkcs
@gkcs 5 лет назад
@@saurabhsingh7020 Yup, we do. Hence the flexible schema.
@vininitdgp
@vininitdgp 5 лет назад
Yaar itna kaha se pata chal gya tum logo ko :-D Great knowledge & presentation 👍
@lokeshreddy7755
@lokeshreddy7755 2 года назад
Thank you Gaurav. Very good content As usual youu are amazing☺
@agammishra420
@agammishra420 5 лет назад
I think one of the major use case scenario of NOSQL is fast scanning/fast read due to the indexing feature which holds all column family together, so I think there is some ambiguity in there at this particular point,
@gkcs
@gkcs 5 лет назад
Yes, reads are faster in NoSQL as long as the quorom is small. Indexing on column also helps read performance.
@shreyadandavate8689
@shreyadandavate8689 3 года назад
Really great video very detailed and very specific covers every necessary concept. keep up the good work !!!!
@gkcs
@gkcs 3 года назад
Thank you 😁
@manisankarjavvaji5759
@manisankarjavvaji5759 3 года назад
if reading is not optimised in NoSQL how are aggreagations optimised? If you try to find average of ages you have to read them. can you explain?
@hizliz1326
@hizliz1326 5 лет назад
Well so, since you are talking about NoSQL in general, consistency is no longer a problem in a few for example: MongoDB. It does support transactions.
@hizliz1326
@hizliz1326 5 лет назад
love your explanations, but 1) Joins are made easy in MongoDB. you can make use of $lookup. But being in NoSQL, ideally it is always best to remember the one basic reason why we want to choose to avoid complex joins (more time), relationships.
@gkcs
@gkcs 5 лет назад
I am doubtful that any NoSQL join will be 'easy'. Famous last words :P Thanks for the feedback!
@neerajshrivastava5600
@neerajshrivastava5600 2 года назад
Awesome explanations !!! Thank yoy
@AdroitRoger
@AdroitRoger 5 лет назад
Schema is always changable can be a big disadvantage as well if we need to update retroactively..
@gkcs
@gkcs 5 лет назад
True 🙂
@HardwareAddiction
@HardwareAddiction 3 года назад
I didn't get the special case. What do you mean by "picking up the latest timestamp"?
@winning_aadict
@winning_aadict 4 года назад
Good job Gaurav. This is really useful.
@readingrebellion9758
@readingrebellion9758 4 года назад
Lucid explanation. Thank you!
@Ulta-Fulta
@Ulta-Fulta 3 года назад
Sir make a video on MySQL InnoDB Architecture.
@laveenabachani
@laveenabachani 2 года назад
"Inner join, outer join all the things that we didn't read in college" haha
@dipayandev7441
@dipayandev7441 5 лет назад
So, for the first SQL schema, why you didn't store the address in the first table? Why to create separate table for storing address.
@gkcs
@gkcs 5 лет назад
Read up on normalisation.
@nehamadaan3328
@nehamadaan3328 4 года назад
@Gaurav Sen Is the quorum value always computed while reading? If there was a profile write to node 5 , and 5 crashes , but next minute the read request goes to node 1 , which doesn't have the profile, why would it go to other replicas to see if profile exists? This way if its anyway going to query all nodes and hence defeating the purpose of horizontal scaling. In which cases all replicas are queried and quorum value is computed? Or does it compute when customer has opted for Strongly consistent DB ? Or only when a node crashes?
@gkcs
@gkcs 4 года назад
I have mentioned some links in the description. Also, we don't query every node, just the number configured as the read replication factor.
@shubhambharti2966
@shubhambharti2966 5 лет назад
Hi Gaurav, could have we used consistent hashing for the node of cassandra cluster?
@gkcs
@gkcs 5 лет назад
Consistent hashing is to minimise the data movement in a cluster. Databases cannot afford much movement between nodes anyway, so a replication architecture is the way to go.
@milon27
@milon27 2 года назад
thank you. how to scale my MySQL database? i am using 1vcpu,2gb ram digital ocean droplet, which contains a node js API and MySQL server, it works fine, but after 10-12 days MySQL queries become slower. how to scale MySQL? i have 50% ram free and only 3-4 % cpu is using most of the time.
@BitsToBytes92
@BitsToBytes92 3 года назад
This video is so dope. Thank you!
@bandanishanth
@bandanishanth 5 лет назад
Hey Gaurav, great video. I have a different question. Do big companies like facebook take backups of huge user data? If they do i'm assuming a backup would be a heavy load (read time) on the database. How would they do that while simultaneously serving user requests. My initial assumption is that they don't do the whole backup at once, but rather in parts at different times. Also a different strategy i can think of is a time based solution , essentially do your backups for a given country when it's night time as we can assume the load will be significantly lesser and avoid potential conflicts. Would love to hear your thoughts .....
@studentcommenter5858
@studentcommenter5858 5 лет назад
This reminds me of RAIDs.
@technicalkrishna7971
@technicalkrishna7971 4 года назад
Guarav, thank you for the awesome videos.
@gkcs
@gkcs 4 года назад
Thank you!
@hpandeymail
@hpandeymail 3 года назад
Thanks Gaurav
@МаксимКузичев-к8ч
@МаксимКузичев-к8ч 4 года назад
If sql db can read data from one column, so then why we need indexes?
@singsarav
@singsarav 5 лет назад
Excellent Amazing Video. Good examples. Nice presentation
@gkcs
@gkcs 5 лет назад
Thank you!
@indiansoftwareengineer4899
@indiansoftwareengineer4899 5 лет назад
@@gkcs Gaurav without specs on rights side is very funny and nice expressions. we use RDBMS while building "TOY" apps. LOL.
@chadb1176
@chadb1176 5 лет назад
awesome video. i'm a product owner and even i found this easy to understand. lol
@pankajjain9830
@pankajjain9830 4 года назад
Hi Gaurav, I have one question can you please guide me ,Out of Big data project in real time which No sl db is mostly used and which one we should learn first Mongo DB, Casandra,Hbase ??: I am currently workinh in ETL testing and want to move into Bigdata Testing so confused where to start ??
@OnchainTS
@OnchainTS 4 года назад
Can someone share more the point made at 6:33? Does it mean that it is cheaper to do calculation for NoSql? The datasets are to be pre-processed before storing for NoSql?
@Akashpagol
@Akashpagol 4 года назад
Question: Does most other NoSQL databases provide aggregate functions? I remember from working with cosmosDB that I couldn't do group by. Is it just azure's cosmos that group by isn't a thing.
@gkcs
@gkcs 4 года назад
Most of the popular ones like Dynamo DB provide aggregation functions.
@kiran.i
@kiran.i 5 лет назад
Good explanation.. one request is it possible to change the subscriber name to some thing like related to technology Because it's getting confused as it looks like personal video instead of knowledge sharing video... As you are doing more videos on tech knowledge based videos Thankyou
@gkcs
@gkcs 5 лет назад
John Doe. en.wikipedia.org/wiki/John_Doe
@srinimurthy
@srinimurthy 3 года назад
In WHAT situation do you have control over your hashing while using Cassandra?
@gkcs
@gkcs 3 года назад
It's called request routing. www.datastax.com/blog/improved-client-request-routing-apache-cassandratm.
@paulunga
@paulunga 2 года назад
I know this isn't what this video is really about, but is it a good idea to store "name" as a single value in SQL? I'm a novice programmer and I've been taught to split them up into first and last name as part of the normalization process.
@gkcs
@gkcs 2 года назад
If you are going to access the full name everytime, and don't need querying by last name, go for full name storage.
@PMPhotographyVideography
@PMPhotographyVideography 5 лет назад
Question : When you have multi level sharding...are the 5 nodes in the second level extra hardware or are those 5 just representing the original 5?
@harshalgawai746
@harshalgawai746 2 года назад
It think they are newer servers(nodes)
@spicy2112
@spicy2112 5 лет назад
Question. In another video, I saw that NoSQL is used in places where there are a lot of reads. The explanation given was that join is a costly operation and would be computation expensive. I see the opposite in this video. Forgive my ignorance. Could someone explain which is the correct way to go? If both are right, could someone kindly explain the difference?
@chiragchatwani9124
@chiragchatwani9124 5 лет назад
You are really awesome I am still waiting for chess video please make it Best youtuber ever period
@gkcs
@gkcs 5 лет назад
Thank you! Will add it on the upcoming poll for the next video 😁
@rohanjain4238
@rohanjain4238 5 лет назад
very good man keep up the good work
@gkcs
@gkcs 5 лет назад
Thanks!
@bostonlights2749
@bostonlights2749 4 года назад
You should do an MBA :) You have good presentation skills
@ibrahimhussain3248
@ibrahimhussain3248 5 лет назад
MongoDB has full ACID transactions and supports joins
@roliverma5851
@roliverma5851 4 года назад
YOU ARE SOOOOOOO COOOOOL!!!!!!!!!!!!!!!!!!
@ravindrabhatt
@ravindrabhatt 2 года назад
can you do relationships (one to one , one to many etc) in NoSQL?
@madhukumart1711
@madhukumart1711 5 лет назад
Gaurav, I have a doubt about understanding quorum. You have mentioned 2 scenarios: 1) RF- 3 , Quorum -3 . If server 5 fails and even if data is present in 1 or 2, u said we will return failure. 2) RF-3, Quorum -2. If server 5 fails, and if either of 1 or 2 has data, u said we will return data. What exactly is quorum? According to point 1: it is like the number of nodes that should agree on a point According to point 2: is like the majority out of the total number of nodes(= QUorum value) that should agree on a value. Please, answer my query.
@iamkrishradha
@iamkrishradha 5 лет назад
both point 1 and 2 are same. Quorum is like the number of votes required to pass a bill. In point 1 only if we have 3 minimum votes we shall pass..and in point 2 it's 2
@madhukumart1711
@madhukumart1711 5 лет назад
@@iamkrishradha thanks. Got the point!!
@0411ameya
@0411ameya 4 года назад
Any System Design vids on : RU-vid , Google Photos, Google Assistant ? Just curious :p
@akkiakhilesh4303
@akkiakhilesh4303 5 лет назад
Hi need a suggestion, I'm using kairosdb and MongoDB in my project. now I have another requirement to store particular data in to cassandra. Kairos written on top of cassandra, will there be any disturbance for my kairos????? If I use cassandra?
@TheManincognito
@TheManincognito 5 лет назад
How about adding scd2 to nosql databases ? Does that not ensure atomicity ?
@pgoeds7420
@pgoeds7420 5 лет назад
Why would a DB store age rather than date (or just year) of birth?
@gkcs
@gkcs 5 лет назад
Good point.
@maheshyanamala4038
@maheshyanamala4038 5 лет назад
excellent bro
@rujotheone
@rujotheone 5 лет назад
Wow, this Quorum system is used(adapted) in some cryptocurrencies and I am just knowing about this
@RameshAdavi
@RameshAdavi 5 лет назад
Great Teaching Skills. As a 63 year old, I found learning from a youngster, really cool!
@gkcs
@gkcs 5 лет назад
Thank you!
@paragsomani5696
@paragsomani5696 4 года назад
I m 44 but wanted to say the same.Now no need.
@nijhum_poet
@nijhum_poet 4 года назад
i m 30+ and fan of them too
@codelucky
@codelucky 3 года назад
You're 64 and still leaning. I got to learn from you. Take care, stay safe.
@padma2580
@padma2580 3 года назад
Me too; learning at 55:-) from GKCS
@SurajSharma-sd3ws
@SurajSharma-sd3ws 5 лет назад
Gaurav, you have tremendous ability to articulate modern day computer science concepts. Its great to see someone so young having this charisma and tech flair which is a rare combo. I have been in software for 20 years and sadly i was never taught like this or then around early 2000's there were no youtube channels like yours. You are redefining online learning with your videos. Keep it up mate.
@gkcs
@gkcs 5 лет назад
Thank you Suraj!
@RamziLebanon
@RamziLebanon 5 лет назад
In a strange way, I watched this Video like a proud father lol You are amazing and it shows how much you care to explain rather than show off.
@gkcs
@gkcs 5 лет назад
Thanks Ramzi!
@NileshwarShukla
@NileshwarShukla 5 лет назад
Apart from technical expertise you are also trying to specialise in video effects 😊
@gkcs
@gkcs 5 лет назад
Yup!
@RachitJain
@RachitJain 5 лет назад
Hey, 1. When you say that NoSQL is better for insertion and retrieval, you say that Relational DBs are slower because you will have to join the two tables with address as foreign key. If that's the scenario, we should not normalize the table here and have address also in the same table for faster reads. Also, locks are still present in implementations of NoSQL DBs because of concurrency. So both are comparable actually and anyone can be slower than the other as it depends on the way you have decided the structure to store data. Ofcourse, retrieving data with a join in SQL will turn out to be slower. 2. Then at 7:58 you say NoSQL is not read-optimized and in advantages you mentioned its used for aggregations as well as. I think it makes sense not to have such comparisons made out as NoSQL databases can be implemented in variety of ways. In-memory databases are also subset of NoSQL and pretty pretty fast to read because of RAM coming into play. Talking about consistency at scale, one is user's choice of stronger v/s eventual but we can't say that Relational DBs will be slow because locks will still be there in implementations of NoSQL databases because of concurrency. To win that, we have concept of granular locks in Relational Databases so that lock is placed only on necessary part. I think the journey to scale any database is pretty complex and only experience can teach us exactly how to do that. RU-vid is running on Relational DB after all - but I am sure its much more complex with portions of NoSQL, CDNs, caching, and what not flying around in their backend architecture.
@gkcs
@gkcs 5 лет назад
Hey Rachit, thanks for the good insights. Here are my thoughts: 1. We "shouldn't" normalize a table is a difficult decision to make. Normalizing offers a logical break up of the data, ACID properties and is the way SQL databases are designed to run. It's true that a lot of systems run their analytics on NoSQL databases. The reason for this is the non-normalized form of data in these tables. 2. I made a mistake here, you can have a look at the pinned comment for clarifications. Reads and writes are usually faster in NoSQL, because it is rare to take a ton of locks in these tables. Aggregations are faster if you have a columnar database, and that along with faster read times contribute to the performance. The implementation decisions influence a lot of how a database performs, but the core ideas on which it runs are very important. The NoSQL databases are, by definition, denormalized and expected to take fewer locks. Eventual consistency, Quorum and Fast updates are selling points of databases like Cassandra. Using them for diametrically opposite goals wouldn't be wise, in my opinion.
@indiansoftwareengineer4899
@indiansoftwareengineer4899 5 лет назад
So finally, which is faster to retrieve all values in Age-column?
@gkcs
@gkcs 5 лет назад
@@indiansoftwareengineer4899 NoSQL.
@indiansoftwareengineer4899
@indiansoftwareengineer4899 5 лет назад
@@gkcs Thanks Gaurav Bhai for reply.
@TrulyLordOfNothing
@TrulyLordOfNothing 5 лет назад
@@gkcs I don't get the part that aggregates are faster in NOSQL than SQL at 06:21. How is total salary at 06:21 in NOSQL faster than find all ages of all employees in company at 7:30? Both will require getting each blob, parsing etc which won't happen in SQL columnar table. appreciate your reply.
@shubhamqweasd
@shubhamqweasd 5 лет назад
Great video as always :D, Just one correction , data is kept in self sorted structures like (AVL/ Red-Black Trees) in memory, and once the memory is past some threshold value (say ~50kb), then the entire memtable(the self sorted trees) are dumped into a SSTable (on disk) which is efficient as the data is already sorted.
@RohitSharma-cw2ii
@RohitSharma-cw2ii 5 лет назад
Great little bro..you looks so young but good skill on explanation..
@gkcs
@gkcs 5 лет назад
Thanks!
@guruprashanthrao1093
@guruprashanthrao1093 5 лет назад
Truth has been spoken at 9:26 "inner join,outer join,left join the things that we didn't read in college"
@deeproy7292
@deeproy7292 4 года назад
very true bro...after working in a job only we start to get to understand the real use of join and group by😜
@sandeepmishra5145
@sandeepmishra5145 4 года назад
College mai toh kuch bhi nhi batate hume khud hi krna padta h..😅😅😅 gfg h na
@samarthurs8000
@samarthurs8000 5 лет назад
Greetings from Munich, Germany. Great video Gaurav. It needs a lot of preparation behind such great content. Kudos man!
@pm71241
@pm71241 2 года назад
Listen guys... this way of classifying a database as either "SQL" or "NoSQL" is meaningless. The relational datamodel is pretty well defined, but there are countless of non-relational databases each with their own datamodel and consistency guarantees. It's meaningless to lump them all into 1 category and talk about them as if there were all MongoDB.
@shubhranshukumar1814
@shubhranshukumar1814 5 лет назад
I am kind of confused that how No-SQL databases can have the read time as a disadvantage along with data aggregation as an advantage. Isn't a lot of read required for aggregating the data?
@amythpaddy8527
@amythpaddy8527 4 года назад
Same question. And from my experience I did not find data aggregation easy for nosql data. Am I doing something wrong?
@sigfrido86
@sigfrido86 4 года назад
I think that the key is database sharding and partitions. If you don't take this into account, read across partitions its a very expensive operation. If your database is well design, then you are ok.
@vitthalsarode5149
@vitthalsarode5149 4 года назад
@@amythpaddy8527 I think what Gaurav means is most of NoSQL databases give inbuilt support for aggregation like mongo. Please go through this link you might get your answer docs.mongodb.com/manual/core/aggregation-pipeline/
@obiwon84
@obiwon84 4 года назад
I think read performance can vary a lot for each NoSQL database. To further complicate the matter small reads vs large batch reads could have vastly different performances. Data aggregation tends to be large batch reads I would assume. Perhaps that is the reason for his statements?
@Manoj-tb1lv
@Manoj-tb1lv 4 года назад
if consistency is relaxed, then read is faster in Nosql, else consistency adds an overhead .
@siddharthshah711
@siddharthshah711 4 года назад
@ 7:56 you say the read times are slower and I get the reasoning for it. But if that's the case then how are NoSQL DBs optimized for analytics?
@umaer2044
@umaer2044 5 лет назад
@Gaurav_Sen bother hope you are doing well. I just saw you on RU-vid.. I really appreciate for what you are doing... Sharing knowledge.. 🙏 🙏 🙏 🙏 🙏.
@gkcs
@gkcs 5 лет назад
Thank you!
@rajcodingworld7768
@rajcodingworld7768 5 лет назад
21:50 Two corrections 1) Cassandra do not store log file in-memory. Rather it stores on disk. That's how it can recover from during failures 2) Cassandra do not append in-memory it rather appends to commit log on disk. So, in-memory the data is sorted Memtable. When it reaches certain limit then it flushes to the disk on SSTable
@mrmca1
@mrmca1 5 лет назад
10:30 Looks like Request sperm trying to penetrate to Cassandra egg. Not sure what will be reproduced.. :D
@rajeshpothamsetty4830
@rajeshpothamsetty4830 5 лет назад
Thanks for video @Gaurav. query: If read times are slower in NoSql, how is it that it is good for aggregations? If I want average age per city, I still have to go through all records and and entire blob for each record, this is expensive right? Can you elaborate more on this?
@techable7524
@techable7524 5 лет назад
Love your videos dude! Just watched about 8 of them and I now use them in the gym because you can pretty much follow along just listening to you :-) Quick Tip: Set your camera to manual focus and increase the aperture (will keep everything in focus) a little as your camera 'hunt's for focus and is a bit distracting on the eye. Love the quality your producing so please keep them coming!
@gkcs
@gkcs 5 лет назад
Thanks! I'll make sure to apply these tips 😁
@beqodia
@beqodia 5 лет назад
thanks very match for this great video ,i have a question please answer me :i want to do android app social media but i still struggle with myself for chosing type of database i search in stackoverflow i found answer for my question : that you should use graph database :is the graph database is a great solution for my problem ?? (english not my original language)
@gkcs
@gkcs 5 лет назад
That depends on your problem.
@interviewchamp
@interviewchamp 5 лет назад
This boy is really good.Great content
@fsl4faisal
@fsl4faisal 5 лет назад
the beginning was some ninja editing skills..!! the video as always very informative.. Thank you..!
@gkcs
@gkcs 5 лет назад
Thank you!
@kasi31682
@kasi31682 2 года назад
if it is not read optimized , then how is it good for analytics ? could you please comment
@manteksingh9954
@manteksingh9954 4 года назад
"Why don't we become more optimists as engineers" - gkcs, 2019
@AK-wp5pr
@AK-wp5pr 2 года назад
is it true whatsapp doesn't have database? how is that possible? or is it a joke which i don't get?
@mdramishhasan0
@mdramishhasan0 4 года назад
Sir, Are you twins?
@uneq9589
@uneq9589 5 лет назад
MongoDb now supports transactions.
@deepanshuh_
@deepanshuh_ 5 лет назад
Tomorrow is my Big data and data analytics exam and You uploaded this...........what a coincidence!
@gkcs
@gkcs 5 лет назад
Yey!
@br34k3r2
@br34k3r2 5 лет назад
kaisa hua exam XD
3 года назад
NoSQL databases isn't limited to Document databases and Cassandra...
@neelmanithakur7760
@neelmanithakur7760 5 лет назад
Your Videos are always Amazing Let me know how can we Develope programming skills on Algorithms and all advanced level coding skills apart from a average programming . I am in BCA 2nd year learnt C, C++, now learning DS. Can i go with learning competitive programmings . Please Provide Best way to Improve Coading Skills which really worth for future.
@yashrajanshukla7790
@yashrajanshukla7790 5 лет назад
Apart from jokes .. i really love no sql databases ( mongo db ) I prefer to use them always
@gkcs
@gkcs 5 лет назад
Ahem, good choice 😁
@claudiob3161
@claudiob3161 4 года назад
Try to find() based on a populated() data. Its a nightmare.
@Scoregasms2286
@Scoregasms2286 3 года назад
@@claudiob3161 .find('data': {$exists: true})?
Далее
КАК БОМЖУ ЗАРАБОТАТЬ НА ТАЧКУ
1:36:32
SQL vs NoSQL or MySQL vs MongoDB
21:30
Просмотров 1,8 млн
Introduction to NoSQL • Martin Fowler • GOTO 2012
54:52
7 Database Paradigms
9:53
Просмотров 1,6 млн
Kubernetes 101 workshop - complete hands-on
3:56:03
Просмотров 1,6 млн
What is DATABASE SHARDING?
8:56
Просмотров 929 тыс.
What is an API and how do you design it? 🗒️✅
15:26
КАК БОМЖУ ЗАРАБОТАТЬ НА ТАЧКУ
1:36:32