1 of 22

Sri Raghavendra Educational Institutions Society (R)

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

www.skit.org.in

Title: No SQL

CO addressed: CO1

Course: Big Data Analytics

Presented by: Mr. P. Kiran Kumar

Department: ISE

2 of 22

2

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

NoSQL (Not Only SQL):

What is NoSQL?

NoSQL (Not Only SQL) is a type of non-relational database designed to store and manage large volumes of structured, semi-structured, and unstructured data. It is built to handle modern applications that require high scalability, flexibility, and fast performance.

​

  • NoSQL stands for Not Only SQL.
  • It does not rely on traditional tables and fixed schemas like relational databases.
  • It stores data in flexible formats such as documents, key-value pairs, columns, or graphs.
  • It is widely used in Big Data, cloud computing, social media, IoT, and real-time web applications.

​

History

The term NoSQL was first coined by Carlo Strozzi in 1998.

Today, NoSQL refers to a family of modern databases that support distributed storage and horizontal scaling.

​

3 of 22

3

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

Features of NoSQL

1. Open Source

Many NoSQL databases are open source, meaning anyone can download, use, and modify them. This reduces licensing costs and encourages community-driven improvements.

​

Example: MongoDB Community Edition and Redis.

​

2. Non-Relational

Unlike SQL databases, NoSQL databases do not store data in tables. They support multiple data models such as:

  • Documents (MongoDB)
  • Key-Value pairs (Redis)
  • Column Families (Bigtable)
  • Graphs (Amazon Neptune)

​

This makes them suitable for storing different types of data.

​

4 of 22

4

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

3. Distributed

NoSQL databases distribute data across multiple servers (nodes). If one server fails, the others continue to serve requests.

Benefits:

  • High Availability
  • Faster Data Access
  • Better Reliability

​

4. Schema-less

A NoSQL database does not require a predefined structure.

Example:

Employee 1

{

"Name": "Rahul",

"Age": 25

}

Both documents can exist in the same collection, making it easy to add new fields without changing the database design.

​

5 of 22

5

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

5. Cluster Friendly

NoSQL databases can run on clusters containing many servers.

​

If one server goes down:

  • Other servers continue working.
  • The application remains available.
  • Downtime is minimized.

​

6. Designed for Modern Web Applications

Modern applications generate huge amounts of data every second. NoSQL databases are designed to handle this scale efficiently.

​

Examples:

  • Facebook – User posts and comments
  • Netflix – Viewing history and recommendations
  • Amazon – Product catalog and customer reviews
  • Instagram – Photos, likes, and followers

​

6 of 22

6

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

Where is NoSQL Used?

Applications of NoSQL Databases

1. Big Data Analytics

  • Stores and processes massive volumes of data generated from multiple sources.
  • Supports real-time analysis and decision-making.
  • Commonly used with Big Data technologies like Hadoop and Spark.

​

2. Social Media Platforms

  • Manages user profiles, posts, comments, likes, messages, and follower relationships.
  • Handles millions of user interactions every second.
  • Supports continuously growing and changing data.
  • Examples: Facebook, Instagram, X (Twitter), LinkedIn.

​

3. E-Commerce Applications

  • Stores product catalogs, customer information, shopping carts, and product reviews.
  • Allows quick updates to inventory and pricing.
  • Provides personalized product recommendations.
  • Examples: Amazon, Flipkart.

​

7 of 22

7

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

4. Real-Time Web Applications

  • Processes live data with very low latency.
  • Used in applications where instant response is required.

Examples:

  • Ride booking (Uber, Ola)
  • Food delivery (Swiggy, Zomato)
  • Online gaming
  • Live chat applications

5. Log and Event Data Storage

  • Stores server logs, application logs, and machine-generated data.
  • Helps monitor system performance and detect errors.
  • Supports security analysis and troubleshooting.

6. Internet of Things (IoT)

  • Stores continuous data generated by sensors and smart devices.
  • Handles high-speed data streams from thousands of connected devices.
  • Used in smart homes, healthcare, and industrial automation.

​

8 of 22

8

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

Characteristics of NoSQL Databases

1. Non-Relational Database

  • NoSQL databases do not use traditional tables with rows and columns.
  • Data is stored as documents, key-value pairs, column families, or graphs.
  • Suitable for handling complex and rapidly changing data.

2. Distributed Architecture

  • Data is distributed across multiple servers (nodes) in a cluster.
  • Supports horizontal scaling by simply adding more servers.
  • Ensures high availability, load balancing, and fault tolerance.

3. CAP Theorem

Instead of focusing only on ACID transactions like SQL databases, NoSQL databases are designed based on the CAP Theorem, which states that a distributed database can guarantee only two of the following three properties at the same time:

  • Consistency (C): Every user sees the same, most recent data.
  • Availability (A): Every request receives a response, even during failures.
  • Partition Tolerance (P): The system continues to operate even if communication between servers is interrupted.

​

9 of 22

9

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

4. Flexible (Schema-less) Design

  • No predefined schema is required before storing data.
  • Different records in the same collection can have different fields.
  • Makes it easy to modify applications without redesigning the database.

​

5. Horizontal Scalability

  • Capacity is increased by adding more servers instead of upgrading one server.
  • Enables handling of billions of records and millions of user requests.
  • Ideal for cloud-based and Big Data applications.

​

6. High Performance

  • Optimized for fast read and write operations.
  • Supports real-time applications with low latency.
  • Efficiently processes large datasets.

​

10 of 22

10

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

Types of NoSQL Databases

NoSQL databases are classified into four major types, based on how they store and organize data. Each type is optimized for different kinds of applications.

​

1. Document Database

  • Stores data as documents in formats such as JSON, BSON, or XML.
  • Each document contains data and its structure together.
  • Flexible schema allows documents in the same collection to have different fields.
  • Best suited for applications with dynamic or frequently changing data.

Example: MongoDB

​

Applications:

  • E-commerce product catalogs
  • Content Management Systems (CMS)
  • User profiles
  • Blogging platforms

​

11 of 22

11

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

2. Key-Value Database

  • Stores data as Key → Value pairs.
  • Each key is unique and is used to retrieve its corresponding value quickly.
  • Very fast for read and write operations.
  • Simple and highly scalable.

​

Examples: Redis, Oracle Coherence

​

Applications:

  • Session management
  • Shopping carts
  • Gaming leaderboards

​

12 of 22

12

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

3. Column-Family Database

  • Stores data in columns instead of rows.
  • Related columns are grouped into column families.
  • Optimized for handling very large datasets and analytical queries.
  • Efficient for reading specific columns without scanning the entire row.

​

Example: Bigtable

​

Applications:

  • Big Data analytics
  • Banking systems
  • Data warehousing
  • Time-series data

​

13 of 22

13

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

4. Graph Database

  • Stores data as nodes (entities) and edges (relationships).
  • Designed to manage highly connected data efficiently.
  • Makes relationship-based queries much faster than relational databases.

​

Example: Amazon Neptune

​

Applications:

  • Social networking
  • Recommendation systems
  • Fraud detection
  • Network analysis

​

14 of 22

14

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

Why NoSQL?

As data volumes and application requirements have grown, traditional relational databases have faced limitations in scalability and flexibility. NoSQL databases were developed to overcome these challenges by providing better performance, scalability, and support for diverse data types.

​

Why Choose NoSQL?

1. Horizontal Scalability (Scale-Out Architecture)

  • NoSQL databases use horizontal scaling, where new servers can be added to increase storage and processing capacity.
  • Unlike SQL databases, there is no need to upgrade to a single, expensive server.
  • Suitable for applications with millions of users.

​

2. Handles Large Volumes of Data

  • Efficiently stores structured, semi-structured, and unstructured data.
  • Can manage terabytes or petabytes of data generated by modern applications.
  • Ideal for Big Data environments.

​

15 of 22

15

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

3. Dynamic Schema

  • Data can be inserted without defining a fixed schema.
  • New fields can be added anytime without modifying existing records.
  • Supports rapid application development and easy maintenance.

4. Auto-Sharding

  • Automatically distributes data across multiple servers (shards).
  • Balances storage and query load among available servers.
  • New servers can be added without affecting application performance.

Benefit: Faster processing and better scalability.

5. Replication

  • Creates multiple copies of data across different servers.
  • If one server fails, another server continues to provide the data.
  • Ensures high availability, fault tolerance, and disaster recovery.

6. High Performance

  • Optimized for fast read and write operations.
  • Supports real-time applications with millions of concurrent users.
  • Reduces response time even with very large datasets.

​

16 of 22

16

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

Advantages of NoSQL Databases

Advantages of NoSQL

1. Easy to Scale (Horizontal Scaling)

  • NoSQL databases can easily scale by adding more servers.
  • Supports cloud-based environments with minimal downtime.
  • Can handle increasing users and data without affecting performance.
  • Example: A social media application can add more servers as the number of users grows.

2. No Predefined Schema

  • Does not require a fixed table structure before storing data.
  • Different records can have different fields.
  • Makes application development faster and more flexible.
  • Example:
  • A customer record can include only Name and Email, while another customer record may also include Phone Number and Address.

3. Cost-Effective

  • Can run on low-cost commodity hardware instead of expensive high-end servers.
  • Most NoSQL databases are open source, reducing software licensing costs.
  • Lower maintenance and operational expenses.

​

17 of 22

17

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

4. High Performance

  • Optimized for high-speed read and write operations.
  • Supports thousands or even millions of database operations per second.
  • Suitable for real-time applications such as online shopping and live streaming.

5. High Availability and Fault Tolerance

  • Data is replicated across multiple servers.
  • If one server fails, another server immediately provides the data.
  • Ensures continuous service with minimal downtime.

6. Supports Sharding and Replication

  • Sharding: Splits data across multiple servers to improve performance.
  • Replication: Creates multiple copies of data for backup and reliability.
  • Improves scalability and disaster recovery.

7. Handles All Types of Data

  • Stores structured, semi-structured, and unstructured data.
  • Suitable for text, images, videos, sensor data, JSON documents, and log files.
  • Ideal for Big Data applications

​

18 of 22

18

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

Sharding and Replication in NoSQL

1. Sharding

Sharding is the process of dividing a large database into smaller parts (called shards) and storing them on different servers.

  • Each server stores only a portion of the data.
  • Data and query load are distributed across multiple servers.
  • New servers can be added as the database grows.

Advantages of Sharding

  • Improves database performance.
  • Supports horizontal scaling.
  • Reduces server workload.
  • Handles large datasets efficiently.

Example

  • Suppose an online shopping website has 12 million customer records.
  • Instead of storing all records on one server:
  • Server 1: Customers A – F, Server 2: Customers G – M, Server 3: Customers N – Z

Each server stores only part of the data, making searches much faster.

19 of 22

19

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

2. Replication

Replication is the process of creating multiple copies of the same data and storing them on different servers.

If one server fails, another server immediately provides the data.

Advantages of Replication

  • High Availability
  • Fault Tolerance
  • Disaster Recovery
  • Data Backup
  • Improved Read Performance

Example

  • An online banking application stores customer data on:
  • Primary Server
  • Secondary Server
  • Backup Server

If the primary server crashes, users continue accessing data from the secondary server without interruption.

​

20 of 22

20

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

NewSQL:

NewSQL is a modern class of relational databases that combines the scalability of NoSQL with the ACID transaction support of traditional SQL databases.

It was developed to overcome the limitations of both SQL and NoSQL databases by providing high performance, horizontal scalability, and strong transaction consistency.

​

Why NewSQL?

Traditional SQL databases provide:

  • ACID transactions
  • Strong consistency
  • Limited horizontal scalability

​

NoSQL databases provide:

  • High scalability
  • High availability
  • Limited ACID support

NewSQL combines the strengths of both SQL and NoSQL.

​

21 of 22

21

03/08/2026

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

Characteristics of NewSQL

1. Relational Data Model

  • Stores data in tables with rows and columns.
  • Uses relationships between tables like traditional SQL databases.

​

2. SQL Interface

  • Uses standard SQL for querying and managing data.
  • Existing SQL applications can be migrated more easily.

​

3. ACID Compliance

  • Supports Atomicity, Consistency, Isolation, and Durability.
  • Ensures reliable and secure transactions.

​

4. Horizontal Scalability

  • Can scale by adding more servers to the cluster.
  • Handles growing workloads without affecting performance.

​

22 of 22

22

12/16/2024

/skit.org.in

(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)

Sri Krishna Institute of Technology

5. High Performance

  • Optimized for processing thousands or millions of transactions per second.
  • Suitable for large-scale OLTP (Online Transaction Processing) systems.

​

6. Distributed Architecture

  • Data is distributed across multiple servers.
  • Provides high availability and fault tolerance.

​

Advantages of NewSQL

  • Combines SQL reliability with NoSQL scalability.
  • Supports ACID transactions.
  • Uses standard SQL language.
  • Handles high transaction volumes.
  • Provides better performance for modern enterprise applications.
  • Suitable for cloud and distributed environments.

​