0% found this document useful (0 votes)
65 views

SQL Vs MongoDB

The document compares SQL and MongoDB databases. SQL uses tables with rows and columns to store structured data with a fixed schema. It is optimized for complex joins and transactions. MongoDB stores data in collections of JSON-like documents with a dynamic schema. It is optimized for scalability and high performance with big data and real-time applications. Both have pros and cons depending on the use case and type of data.

Uploaded by

Mohd Aktharpasha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views

SQL Vs MongoDB

The document compares SQL and MongoDB databases. SQL uses tables with rows and columns to store structured data with a fixed schema. It is optimized for complex joins and transactions. MongoDB stores data in collections of JSON-like documents with a dynamic schema. It is optimized for scalability and high performance with big data and real-time applications. Both have pros and cons depending on the use case and type of data.

Uploaded by

Mohd Aktharpasha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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