Dr.Divya K S
Kristujayanti deemed to be University
NoSQL Databases
• 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.
Introduction to NoSQL Databases
• 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.
Limitations of Relational Databases
• 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.
CAP Theorem
• States that 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.
BASE vs ACID Properties
• ACID: Atomicity, Consistency, Isolation,
Durability — strict consistency.
• BASE: Basically Available, Soft state, Eventual
consistency — focuses on scalability.
• Table: Comparison of ACID vs BASE.
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.
Types of NoSQL Databases
• 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.
RDBMS vs NoSQL
• Comparison of features:
• - Schema
• - Data Model
• - Scalability
• - Transactions
• - Query Language
• - Performance
• - Example Databases
• Table included.
Cassandra vs MongoDB
• Comparison:
• - Data Model
• - Query Language
• - Consistency
• - Scalability
• - Use Cases
• - Schema
• Table included with differences.
CouchDB vs MongoDB
• Comparison:
• - Data Model
• - Query Language
• - Storage
• - Replication
• - Consistency
• - Use Cases
• Table included with differences.
Examples and Figures
• MongoDB Document Example.
• Cassandra Table Example.
• CouchDB Document Example.
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

No SQL Database ,CAP theorem, Base Vs ACID property

  • 1.
    Dr.Divya K S Kristujayantideemed to be University
  • 2.
    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.
  • 12.
    Examples and Figures •MongoDB Document Example. • Cassandra Table Example. • CouchDB Document Example.
  • 13.
    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