<img height="1" width="1" style="display:none;" alt="" src="https://ct.pinterest.com/v3/?tid=2613694256380&amp;pd[em]=<hashed_email_address>&amp;noscript=1">
Get Started

What is MongoDB and how does it differ from sql?

Gregory Testo, Jul, 3 2017 | 1 min read

  
mongodb-for-giant-ideas-bbab5c3cf8.png

Beep! Beep! Beep! Sleepily, you yawn and peek your eyes open to see your alarm clock staring back at you. Stumbling out of bed, you methodically brush your teeth and shower. With a towel as your only defense against the cold, you look around your room you ask yourself "What should I wear today?" Your choice can be detrimental on how your day goes. Going for a run in sandals or wearing a tank top in the snow do not sound like fun experiences. Choosing what database to use for a project can be just as important.

// What is MongoDB?

MongoDB is a popular free and open-source NoSQL(Not only SQL) database. A sneaker can be defined by its characteristics i.e. a soft shoe with a rubber sole, MongoDB can be better understood by its features. Its first key feature is faster queries and less data transfer activity. The second is a replication facility called replica set that provides automatic failover, a way to protecting the database against failure and data redundancy. Lastly automatic scaling, as the amount of data stored increases it is able to shard, a method for distributing data across multiple machines.

// How does it differ from SQL?

Just like shoes have categories like sneakers or high heels, databases are similar. They are broken up into SQL(relational databases ) and NoSQL (non-relational databases). Relational databases represent and store data in tables and rows while non-relational databases like MongoDB store data in collections of JSON documents. According to the documentation from MongoDB, "When compared to relational databases, NoSQL databases are more scalable and provide superior performance." It is also able to handle large volumes of structured, semi-structured, and unstructured data, agile sprints, quick iteration, frequent code pushes and efficient and scale-out architecture.

Just like wearing sneakers in all weather conditions doesn’t make sense, using one database type for all your projects might make your life unnecessarily more complicated. Being familiar with the differences of database advantages could go a long way to making better database decisions and being more efficient.

 

Further reading...

https://docs.mongodb.com/manual/introduction/

https://www.mongodb.com/nosql-explained

You might also like ...

8 Tips to Reading Documentation: A Newbie’s Guide

Have you ever been on the verge of tearing your hair out trying to figure out why a line of code is failing? It’s time to turn to doc...

Michele Barard   |   2 min read

Read More

Announcing Hartford as next TTS campus, launching early 2019!

Tech Talent South is coming to Connecticut to provide residents with the skills needed to fill in-demand, high-tech jobs that employe...

Meagan Michal   |   1 min read

Read More

Excited For This New Journey

Excited For This New Journey

Robert Cunningham   |   1 min read

Read More