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