Mo Ngo DB

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 8

MongoDb

Cours coursera
NoSQL
• NoSQL means Not only SQL.
• NoSQL databases have their roots in the open source community.
• NoSQL database implementations are technically different from each
other.
• Adopting NoSQL databases has several benefits, including storing and
retrieving session information and event logging for apps.
• The four main categories of NoSQL databases are Key-Value,
Document, Wide Column, and Graph.
NoSQL
• Key-value NoSQL databases are the least complex architecturally.
• Document-based NoSQL databases use documents to make values
visible for queries.
• In document-based NoSQL databases, each piece of data is considered a
document, which is typically stored in either JSON or XML format.
• Column-based databases spawned from the architecture of Google’s
Bigtable storage system.
• The primary use cases for column-based NoSQL databases are event
logging and blogs, counters, and data with expiration values.
• Graph databases store information in entities (nodes) and relationships
(edges).
This term is an acronym for Atomicity, Consistency, Isolation, and Durability,
ACID which is a set of properties that guarantee reliable processing of database
transactions in traditional relational databases.

In the context of database transactions, atomic means that an operation is


Atomic indivisible and either completes fully or is completely rolled back. It ensures
that the database remains in a consistent state.

An alternative to ACID. Stands for basically available, soft state, eventually


BASE consistent. BASE allows for greater system availability and scalability,
sacrificing strict consistency in favor of performance

A NoSQL database system developed by Google, designed for handling large


Bigtable amounts of data and providing high performance, scalability, and fault
tolerance.

JSON is an acronym for JavaScript Object Notation, a lightweight data-


JSON interchange format used in NoSQL databases and other data systems. JSON
is human-readable and easy for machines to parse.
A NoSQL database model that stores data as key-value pairs. It's a simple
Key-value and efficient way to store and retrieve data where each key is associated
with a value.

A NoSQL database model that stores data in semi-structured documents,


Document often in formats like JSON or BSON. These documents can vary in structure
and are typically grouped within collections

A NoSQL database model optimized for storing and querying data with
Graph
complex relationships, represented as nodes and edges. Examples include
database
Neo4j and OrientDB.

A NoSQL database model that stores data in column families rather than
Column
tables, making it suitable for storing and querying vast amounts of data
database
with high scalability. Examples include Apache Cassandra and HBase.
MongoDB
• MongoDB is a document and NoSQL database.
• MongoDB is easy to access by indexing.
• Mongo DB supports various data types, including dates and numbers.
• The database schema can be flexible when working with MongoDB.
• You can change the database schema without involving complex data
definition language statements.
• Complex data analysis can be done on the server using Aggregation
Pipelines.
• The scalability MongoDB provides makes it easier to work across the globe.
• MongoDB enables you to perform real-time analysis of your data.
A database in MongoDB is a logical container for one or more collections. It
Database
provides an isolation mechanism for collections and their associated data.

In MongoDB, a collection is a group of MongoDB documents. Collections


Collection are analogous to tables in a relational database and store related data
documents in a schema-free, JSON-like format.

A NoSQL database model that stores data in semi-structured documents,


Document often in formats like JSON or BSON. These documents can vary in structure
and are typically grouped within collections.
MongoDB
• The Mongo shell is an interactive command line tool provided by MongoDB to interact
with your databases.
• Indexes are an organized reference used to locate data quickly.
• MongoDB stores data being indexed on the index entry and the document's location on
disk.
• Replication is the duplication of data and any changes made to the data.
• Replication is the duplication of data and any changes made to the data.
• For growing data sets, you can use sharding to scale horizontally.

You might also like