SQL Vs MongoDB

Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

Manish Kumar Shah

SQL

Vs -------------------------------------
@manishkumarshah

MongoDB
Manish Kumar Shah

SQL (Structured Query Language) is


a traditional Relational database
management system (RDBMS) .

-------------------------------------------------
@manishkumarshah

MongoDB is a document-oriented
NoSQL database.
Manish Kumar Shah

In SQL, data is stored in tables with


rows and columns.

-------------------------------------------------
@manishkumarshah

In MongoDB, data is stored in


collections of JSON-like
documents.
Manish Kumar Shah

SQL uses a fixed schema, where the


structure of the tables must be
defined before data can be
inserted.

-------------------------------------------------
@manishkumarshah

MongoDB uses a dynamic schema,


where documents can have
different fields.
Manish Kumar Shah

-------------------------------------------------
@manishkumarshah
Manish Kumar Shah

SQL is optimized for complex joins


and transactions.

-------------------------------------------------
@manishkumarshah

MongoDB is optimized for


scalability and high performance.
Manish Kumar Shah

SQL supports a rich set of data


types.

-------------------------------------------------
@manishkumarshah

MongoDB has a limited set of data


types.
Manish Kumar Shah

SQL uses a declarative query


language.

-------------------------------------------------
@manishkumarshah

MongoDB uses a more expressive


query language based on JSON.
Manish Kumar Shah

SQL databases follow ACID


properties (Atomicity, Consistency,
Isolation and Durability).

-------------------------------------------------
@manishkumarshah

NoSQL database follows the


Brewers CAP theorem (Consistency,
Availability and Partition
tolerance).
Manish Kumar Shah

SQL is used in more traditional


business applications.

-------------------------------------------------
@manishkumarshah

MongoDB is often used in big data


and real-time web applications.
Manish Kumar Shah

A great choice if you have


structured data and need a
traditional relational database.

-------------------------------------------------
@manishkumarshah

An ideal choice if you have


unstructured and/or structured
data with the potential for rapid
growth.
Manish Kumar Shah

Was This Post


Interesting ?
Tell me in comments

Manish Kumar Shah

@manishkumarshah
@codes.manish
@SofTeCode-CodingTips
https://t.me/CodeTreasure

@manishkumarshah Like | Save | Share


@manishkumarshah

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy