DEV Community

Cover image for Try NoSQL, Get Started with MongoDB

Try NoSQL, Get Started with MongoDB

Nikhil Bobade on July 18, 2024

What is a MongoDB: MongoDB is a non-relational database, which means that data is stored as collections. MongoDB also supports BSON (Bi...
Collapse
 
leob profile image
leob

What is this? The article has a headline asking "SQL is Dead?", then never proceeds to address it ... :)

In my view (and I'm far from the only one) SQL isn't dead at all, it's more "alive" than ever - I'm seeing "scalable cloud SQL database" projects and platforms popping up everywhere I look ...

NoSQL was mainly invented because RDBMS-es couldn't scale horizontally - but that's starting to change ... NoSQL was not invented because it's easier to use, more powerful, or more flexible - coz it isn't :)

Collapse
 
nikhil27b profile image
Nikhil Bobade

Hey You are right SQL not dead but its for just start your new journey with nosql mongodb.

Collapse
 
leob profile image
leob • Edited

I've actually worked with MongoDB on an app, and Mongo was perfect for that use case ...

It was a meteorology app which streamed gigabyte upon gigabyte of realtime data into the database, and MongoDB was able to handle that ... yes, that's a use case where you REALLY want the raw performance and the scalability of NoSQL :)

But well, that's not your everyday use case, it's a pretty "specialist" one - for the vast majority of "mainstream" applications I don't really see myself quickly choosing Mongo or NoSQL.

Collapse
 
mrpercival profile image
Lawrence Cooke

SQL and mongo are not trying to solve the same type of problems, to say one is dead and to use the other is missing this giant use case difference between them. It's very misleading to make that leap.

Both have their place, for the purposes Mongo was built its great, but its not a replacement for SQL.

I would recommend changing the title to say "getting started with Mongo" its accurate to what the article is about, without misleading new users into thinking Mongo is right for every task.

Collapse
 
carcinocron profile image
carcinocron

lolwut? If anything, mongodb is dead, start your journey with SQL.

Collapse
 
nikhil27b profile image
Nikhil Bobade • Edited

It's never happen 😂 if happen then I am a creator to create that post

Collapse
 
vsaulis profile image
Vladas Saulis

Yes, it's good! You can also mimic relational access.

Collapse
 
nikhil27b profile image
Nikhil Bobade

Yes, Thanks

Collapse
 
appqui profile image
Igor Golodnitsky • Edited

Cons section?

I would better start with PostgreSQL and jsonb.

Collapse
 
nikhil27b profile image
Nikhil Bobade

Data Redundancy and Size: MongoDB is a document-oriented database that frequently holds redundant data. This can result in bigger data sets, particularly when contrasted to relational databases, where data normalisation is typical.

Limited Joins: MongoDB does not support complicated joins as well as relational databases. Although it includes the $lookup operator for performing joins, it may be less efficient and difficult to manage for complex queries.

Collapse
 
shikkaba profile image
Me

SQL isn't dead...

Collapse
 
nikhil27b profile image
Nikhil Bobade

Yes I know still use NOSQL mongodb