Thursday, July 4, 2019

Mongo DB


MongoDB is an open-source document database and leading NoSQL database. MongoDB is written in C++. This tutorial will give you great understanding on MongoDB concepts needed to create and deploy a highly scalable and performance-oriented database.

Advantages of MongoDB

  • Structure of a single object is clear.
  • No complex joins.
  • Tuning.
  • MongoDB is easy to scale.
  • Conversion/mapping of application objects to database objects not needed.
  • Uses internal memory for storing the (windowed) working set, enabling faster access of data.
Disadvantages of MongoDB
  • It does not support transaction
  • No support for join operation
  • It does not support function or stored procedure
  • Consumes internal memory

Why Use MongoDB?
  • Data is stored in the form of JSON style documents.
  • Index on any attribute.
  • Replication and high availability.
  • Auto-sharding.
  • Rich queries.
  • Fast in-place updates.
  • Professional support by MongoDB.
Where to Use MongoDB?
  • Big Data
  • Content Management and Delivery
  • Mobile and Social Infrastructure
  • User Data Management
  • Data Hub
Where not to use MongoDB?

  • Complex Transaction Intensive Systems
  • Tightly Coupled Database Schema
Who uses MongoDB?
MongoDB is trusted by large enterprises running high-performance mission-critical enterprise applications. Below is a list of a few of them-
Adobe
LinkedIn
SAP 
McAfee
eBay
etc.

  • Create Database :-  use Database_Name
  • Drop Database :- db.dropDatabase()
  • Create Collection :- db.createCollection()
  • Drop Collection :- db.Collection_Name.drop()
  • Insert Document :- db.Collection_Name.insert()
  • Query Document :-   db.Collection_Name.find().pretty()
  • Update Document :- db.Collection_Name.update() 

  • Delete Document :-  db.Collection_Name.remove( )  















No comments:

Post a Comment

Express

What is Express? Express is a minimal and flexible Node.js web application framework that provides a robust set of features to develo...