Database Management System · Unit 10
NoSQL and Unstructured Data
Exam-focused notes for NoSQL and Unstructured Data (Database Management System, BIT202): what the TU syllabus asks and how it has actually been tested, with 5 solved past questions from this unit.
NoSQL and Unstructured Data in short
Modern applications such as social media and online shops store huge amounts of data in many forms. Relational databases do not always fit this need well. NoSQL databases were created to handle such data at large scale.
What this unit covers
- Structured and unstructured data
- NoSQL definition and characteristics
- NoSQL types and models
- NoSQL advantages
- Data storage and retrieval in NoSQL
- NoSQL query languages
Data storage and retrieval in NoSQL
2082 · 5 marks
How data is stored and retrieved in NoSQL databases? Illustrate with examples. [5]
NoSQL definition and characteristics
2080 · 5 marks
What is NoSQL? Explain the characteristics of NoSQL. [5]
Show solved answerHide answer
NoSQL: Definition and Characteristics
What is NoSQL?
NoSQL (Not Only SQL) is a category of database management systems that do not follow the traditional relational database model. NoSQL databases are designed to store, retrieve, and manage large volumes of unstructured, semi-structured, or structured data that may not fit neatly into tables with fixed schemas.
NoSQL databases emerged to address the limitations of relational databases in handling big data, real-time web applications, and distributed computing environments.
Note: This answer is based on standard database literature, as no specific curriculum notes were provided.
Characteristics of NoSQL
1. Non-Relational / Schema-Free
- NoSQL databases do not require a fixed schema like relational databases.
- Data can be stored in flexible formats such as key-value pairs, documents, graphs, or wide columns.
- New fields can be added without altering the entire database structure.
2. Horizontal Scalability
- NoSQL databases are designed to scale out by adding more servers (horizontal scaling) rather than upgrading a single server (vertical scaling).
- This makes them suitable for handling massive amounts of data across distributed systems.
3. Distributed Architecture
- Data is distributed across multiple nodes or servers.
- This ensures high availability and fault tolerance.
- Examples include replication and sharding of data across clusters.
4. High Performance
- NoSQL databases are optimized for fast read and write operations.
- By avoiding complex joins and rigid schemas, they achieve lower latency and higher throughput.
5. BASE Properties (instead of ACID)
NoSQL follows the BASE model:
| Property | Description |
|---|---|
| Basically Available | System guarantees availability |
| Soft State | State of the system may change over time |
| Eventually Consistent | Data will become consistent eventually, not immediately |
6. Support for Variety of Data Models
NoSQL supports multiple data storage models:
- Key-Value Store (e.g., Redis)
- Document Store (e.g., MongoDB)
- Column-Family Store (e.g., Cassandra)
- Graph Database (e.g., Neo4j)
7. Open Source and Cost-Effective
- Most NoSQL databases are open-source and can run on commodity hardware, reducing infrastructure costs.
8. Handles Big Data
- NoSQL is well-suited for storing and processing large volumes of data (Big Data) generated by social media, IoT devices, and web applications.
Summary Table
| Feature | Relational DB | NoSQL DB |
|---|---|---|
| Schema | Fixed | Flexible |
| Scalability | Vertical | Horizontal |
| Data Model | Tables | Key-Value, Document, Graph, Column |
| Consistency | ACID | BASE |
| Best For | Structured Data | Unstructured/Big Data |
2079 · 5 marks
What is NoSQL? Explain the NOSQL characteristics related to data models and query languages. [5]
2078 · 5 marks
What is NoSQL? What are the types of NoSQL? Explain. [5]
0 · 5 marks
Differentiate structured and unstructured data. List the advantages of NoSQL. [5]
Make Unit 10 stick
Practice BIT202 with flashcards & quizzes