0% found this document useful (0 votes)
31 views19 pages

MongoDB and Cassandra

The document provides an overview of New SQL, MongoDB, and Cassandra, highlighting their features, operations, and comparisons. New SQL aims to merge the ACID compliance of traditional SQL with the scalability of NoSQL, while MongoDB is a document-oriented NoSQL database known for its flexibility and high availability. Cassandra is a distributed NoSQL database optimized for write-heavy workloads, featuring a decentralized architecture and various data types.

Uploaded by

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

MongoDB and Cassandra

The document provides an overview of New SQL, MongoDB, and Cassandra, highlighting their features, operations, and comparisons. New SQL aims to merge the ACID compliance of traditional SQL with the scalability of NoSQL, while MongoDB is a document-oriented NoSQL database known for its flexibility and high availability. Cassandra is a distributed NoSQL database optimized for write-heavy workloads, featuring a decentralized architecture and various data types.

Uploaded by

Arut Jothi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 19

UNIT-IV

Dr.G.Arutjothi
Assistant Professor
New SQL, MongoDB & Cassandra

Comparison, Features, and


Operations
Overview of New SQL
• - Combines benefits of SQL and NoSQL
– NewSQL is a modern relational database whose goal is
to combine ACID guarantees of SQL with the scalability
and high performance of NoSQL. It is made using
modern programming languages and technology that
wasn’t available before.

• - Provides ACID compliance with scalability


• - Examples: Google Spanner, CockroachDB,
NuoDB
ACID VS CAP
Comparing SQL, NoSQL, and NewSQL
• - SQL: Structured data, ACID transactions
• - NoSQL: Schema-less, horizontal scaling
• - NewSQL: ACID compliance with scalability
Comparing SQL, NoSQL, and NewSQL
MongoDB: Introduction & Features
• - Document-oriented NoSQL database
• - High availability with replication
• - Sharding for horizontal scaling
• - Flexible schema
MongoDB Data Types & Query Language

• - Data Types: String, Integer, Boolean, Arrays,


ObjectId
• - Query Language: JSON-like queries
MongoDB CRUD Operations & Functions
• - Create, Read, Update, Delete operations
• - Functions: Count, Sort, Limit, Skip,
Aggregate, MapReduce
MongoDB Cursors, Indexes, Import &
Export
• - Cursors for iterating query results
• - Indexing for faster retrieval
• - Import/Export: mongoimport &
mongoexport
Cassandra: Introduction & Features
• - Distributed NoSQL database
• - Highly available, decentralized architecture
• - Optimized for write-heavy workloads
Cassandra Data Types & CQLSH
• - Data Types: Text, Int, Boolean, List, Set, Map
• - CQLSH: Command-line interface for
Cassandra Query Language (CQL)
Cassandra Keyspaces & CRUD Operations

• - Keyspaces define data organization


• - CRUD operations: Insert, Select, Update,
Delete
Collections, Counter, TTL, Alter Commands

• - Collections: Lists, Sets, Maps


• - Counter: Stores incremental values
• - TTL (Time-To-Live): Automatic data expiration
• - Alter commands for schema modification
Import & Export, Querying System Tables

• - Import/Export data using COPY command


• - Query system tables for metadata insights
Comparison between Cassandra Vs MongoDB

You might also like