MongoDB == NoSQL ?đŸ€”

Jerry VelĂĄzquez
3 min readDec 6, 2019

--

medium article by : Mark Rethana

In this article I going over understanding NoSQL, because to be completely honest I did not know what NoSQL was until I sought out mongoDB(which is fairly recent).

I’ve heard about NoSQL before, but honestly I didn’t think about looking into the tech, because I was so used to using Ruby on Rails with a PostgreSQL database. Didn’t see much of a reason to look into another database model(also a newer concept for me which I will go over); Building apps with rails ActiveRecord magic(a ruby gem), really made setting up schema tables feel effortless. But I’m told mongoDB will open me to a whole new world


Brief on MongoDB

MongoDB is a cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schema. MongoDB is developed by MongoDB Inc. and licensed under the Server Side Public License (SSPL). — wikipedia

Hmm, a quick google search on mongoDB lead me to the definition above, but if(!familiarNoSQL) {return “I’m confusion”}. So, in order to clear up some confusion about how mongoDB uses no SQL, am going to try and help us understand what noSQL is.

NoSQL DB

So traditional SQL databases or relational database management systems(RDBMS), are used to store data with a ACID model, but with NoSQL we use a BASE model.

ACID is an acronym for atomicity, consistency, isolation, and durability; I like think about this concept using the traditional image of an excel spreadsheet. So, in layman's term, it’s a very rigorous data structure that only understand a formal SQL language.eh.

The BASE data model is an acronym for Basic Availability, Soft State, and Eventual Consistency. This model accommodates flexibility when creating data of objects, though isn’t saved directly to table, but at some point in time these unstructured data points turn into a readable form of JSON.yay!

left ACID model | Right BASE model

Pro: In the unlikely event that a failure disrupts access to a segment of data, this does not necessarily result in a complete database outage.🍀

Con: Data consistency is the developer’s problem and should not be handled by the database. đŸ˜”

Conclusion

there is so much more I want to talk about when I come to this topic like how it help with big data issues and how we can use them in our application. But for now I think understanding what noSQL is on a basic level is a good start. I’ve gone in a article rabbit hole searching explanations and gain a some useful concept to understand and I’ve linked some of those below(though they tend to repeat some ideas. In the coming weeks I definitely am going to see how I can implement mongoDB in my projects.

Thanks to the peeps at FreeCodeCamp.org for putting up great content, I’ve definitely gained a valuable skill with mongoDB.

Helpful Article links

https://www.mongodb.com/big-data-

explainedhttps://www.lifewire.com/abandoning-acid-in-favor-of-base-1019674

--

--