Tech Junkie Blog - Real World Tutorials, Happy Coding!: MongoDB In-Depth: The Difference Between RDBMS and MongoDB

Monday, September 9, 2019

MongoDB In-Depth: The Difference Between RDBMS and MongoDB

Before we begin inserting data into mongoDB we need to understand the difference between Relational Database Management System (RDBMS) and mongoDB.  RDBMS is a database many of us worked with in the past.  You have tables and relationships between those tables.  We will use the ACME Bank that we were build our AngularJS SPA application as an example.

This is how the design would be on a RDBMS
































As you can see there's relationship between all the tables.  Everything is related, there's nothing wrong with that.

Here is how the design would be like in mongoDB
















With mongoDB there's no relationships.  Each database have document collections and each document collection have documents.  I guess if you want to map the terminologies, document collections would be tables and documents would be the records in the table.

 Previous:MongoDB In-Depth: Basic MongoDB Commands

No comments:

Post a Comment

Search This Blog