Monday, March 8, 2021

Introduction to MongoDB

Summary:👉 TABLE OF CONTENTS:

  • Chapter 01: What is MongoDB?
  • Chapter 02: Functionality of MongoDB
  • Chapter 03: Why use MongoDB?
  • Chapter 04: Comparing Terminologies
  • Chapter 05: CRUD Terms
  • Chapter 06: Advantages of MongoDB






MongoDB ✅

  • MongoDB is a scalable, high-performance, open-source, schema-free, document-oriented database.
  • Used NoSQL mechanism.
  • MongoDB also provides the feature of Auto-Scaling. Since, MongoDB is a cross-platform database and can be installed across different platforms like Windows, Linux, etc.
  • Supports APIs in many computer languages like JavaScript, Python, Ruby, Perl, Java, C#.
  • Record in MongoDB is a document.


Functionality of MongoDB ✅
  • Document-based database.
  • Secondary indexes.
  • Atomic writes and fully-consistent reads.
  • Query language via an API.
  • Dynamic schema (no DDL).
  • Master-Slave replication.
  • Supports map-reduce and aggregation tools.
  • Easy to administer in the case of failures.
  • automatic load balancing.
  • Stores files of any size easily without complicating your stack.

Why use MongoDB? ✅
  • Easy and fast integration of data. (no ERD diagram).
  • Simple queries.
  • The functionality provided applicable to most web applications.
  • Document Oriented Storage.
  • Index on any attribute.
  • Auto-sharding.

Comparing Terminologies ✅

SQL Terminologies

MongoDB Terminologies

Database

Database

Table

Collection

Row

Document

Column

Field

Index

Index


CRUD Terms ✅

SQL Operation

MongoDB Operation

Create

Create

Insert

Read

Update

Update

Delete

Remove


  • Create ✔
    • db.collection.insert( <document> )
    • db.collection.save( <document> )
    • db.collection.update( <query>, <update>, { upsert: true } )
  • Read ✔
    • db.collection.find( <query>, <projection> )
    • db.collection.findOne( <query>, <projection> )
  • Update 
    • db.collection.update( <query>, <update>, <options> )
  • Delete 
    • db.collection.remove( <query>, <justOne> )

Advantages of MongoDB over RDBMS (Relational Database Management System) ✅
  • No complex joins.
  • The structure of a single object is clear.
  • MongoDB provides the facility of the deep query.
  • Ease of scale-out.
  • MongoDB is schema-less: is a document database in which one collection holds different documents.
  • uses internal memory for storing working sets.

References:
Share:

0 comments:

Post a Comment

About Me

My photo
As a programmer, work in a constantly evolving environment. I'll create, maintain, audit, and improve systems to fulfill particular needs, often as advised by an analyst or architect, testing both hard and software systems to diagnose and resolve system faults. And also I am a creative thinker and self-learner, adept in web & mobile application development.

What is CLOUD COMPUTING

Search This Blog

Blog Archive