Skip to content

NoSQL

Also called: NoSQL database, NoSQL databases, non-relational database, non-relational databases

Published:

What does NoSQL mean?

MongoDB notes that some read NoSQL as "non-SQL" and others as "not only SQL", and that the term usually refers to any non-relational database [3]. These databases took off in the late 2000s as storage costs fell sharply [3]. Microsoft's guidance uses the same framing: non-relational databases, also called NoSQL databases, are optimised for flexible schemas, horizontal scale and specific access patterns [2].

What kinds are there?

Document stores hold semi-structured documents, often JSON, with named fields and nested values [2]. Key-value stores map each value to a unique key and mostly support simple reads, writes and deletes [2]. Column-family, or wide-column, databases keep sparse data in rows and group dynamic columns into families, while graph databases store information as nodes and edges [2]. AWS adds in-memory and search databases to the list [1].

How does NoSQL compare with relational databases?

In AWS's comparison, relational databases use a strict, predefined schema and provide full ACID guarantees. In NoSQL databases the application usually decides the schema, and most relax some of those guarantees in exchange for flexibility and horizontal scale [1]. Relational systems mainly scale up or add read replicas; NoSQL systems typically partition data across distributed clusters [1].

AWS gives a concrete example. A relational design spreads a book across three linked tables, Books, Authors and Author-ISBN. A document design keeps the book and its author details together in a single document [1].

Frequently asked questions

Does NoSQL mean no SQL at all?

Not necessarily. The term is sometimes read as "not only SQL", and some NoSQL systems offer SQL-like query languages. What they share is not using the relational table model.

Is NoSQL better than a relational database?

It depends on the workload. Strict multi-record transactions favour relational databases; flexible schemas and horizontal scale favour NoSQL models.

Sources

  1. What is a NoSQL Database? — AWS
  2. Understand Data Models — Microsoft Learn
  3. What Is NoSQL? NoSQL Databases Explained — MongoDB