No SQL Database ,CAP theorem, Base Vs ACID property
No SQL databse,Limitations of Relational databases, CAP Theorem, BASE vs ACID properties, Advantages of NoSQL, Types of NoSQL databases, RDBMS Vs NoSQL, Differences between Cassandra and MongoDB, CouchDB and MongoDB.
NoSQL Databases
• Limitationsof Relational databases, CAP
Theorem, BASE vs ACID properties,
Advantages of NoSQL, Types of NoSQL
databases, RDBMS Vs NoSQL, Differences
between Cassandra and MongoDB, CouchDB
and MongoDB.
3.
Introduction to NoSQLDatabases
• NoSQL (Not Only SQL) databases are non-
relational databases designed for scalability,
high performance, and flexible data models.
• They store data in formats such as key-value
pairs, documents, wide-columns, or graphs
instead of traditional tables.
4.
Limitations of RelationalDatabases
• Fixed schema, limited scalability, complex
joins, poor handling of unstructured data, big
data limitations.
• Example: A social media app with millions of
users needs scalable storage that traditional
RDBMS struggles to provide.
5.
CAP Theorem
• Statesthat a distributed database system can satisfy
at most two of the three properties:
• - Consistency
• - Availability
• - Partition Tolerance
• Example: MongoDB is CP, Cassandra is AP.
• Figure: CAP Theorem Triangle.
6.
BASE vs ACIDProperties
• ACID: Atomicity, Consistency, Isolation,
Durability — strict consistency.
• BASE: Basically Available, Soft state, Eventual
consistency — focuses on scalability.
• Table: Comparison of ACID vs BASE.
7.
Advantages of NoSQL
•Handles large volumes of data efficiently.
• Flexible schema design.
• Horizontal scalability.
• High performance.
• Supports unstructured/semi-structured data.
• Example: Social media platforms storing posts,
user data, comments, etc.
8.
Types of NoSQLDatabases
• Document Store (MongoDB, CouchDB)
• Key-Value Store (Redis, DynamoDB)
• Column-Family Store (Cassandra, HBase)
• Graph Store (Neo4j, OrientDB)
• Table: Types and examples of NoSQL
databases.
9.
RDBMS vs NoSQL
•Comparison of features:
• - Schema
• - Data Model
• - Scalability
• - Transactions
• - Query Language
• - Performance
• - Example Databases
• Table included.
10.
Cassandra vs MongoDB
•Comparison:
• - Data Model
• - Query Language
• - Consistency
• - Scalability
• - Use Cases
• - Schema
• Table included with differences.
11.
CouchDB vs MongoDB
•Comparison:
• - Data Model
• - Query Language
• - Storage
• - Replication
• - Consistency
• - Use Cases
• Table included with differences.
Summary
• Key Points:
•- Limitations of RDBMS
• - CAP Theorem
• - BASE vs ACID
• - Advantages of NoSQL
• - Types of NoSQL
• - RDBMS vs NoSQL
• - Cassandra vs MongoDB
• - CouchDB vs MongoDB