BIT202 ยท 2080 ยท 5 marks
What is NoSQL? Explain the characteristics of NoSQL.
What is NoSQL? Explain the characteristics of NoSQL. [5]
Quick answer
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: Definition and Characteristics
What is NoSQL?
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 |
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.