Glossary termDatabase category

NoSQL

Also known as: Non-relational database, Not only SQL

Broad category of databases that store data in models other than relational tables, such as documents, key-value pairs, wide columns or graphs.

NoSQL refers to databases that depart from the relational model of tables, fixed schemas and SQL queries. The main families are document stores, which hold flexible JSON-like records, as in MongoDB and CouchDB; key-value stores, which map keys to opaque values, as in Redis and Amazon DynamoDB; wide-column stores, which organize huge sparse tables across many machines, as in Apache Cassandra and HBase; and graph databases, which store nodes and relationships, as in Neo4j. Many are designed to spread data across clusters of commodity servers.

Carlo Strozzi used the name in 1998 for a relational database that did not use SQL, but its familiar meaning dates from 2009, when it was adopted as the label for a meetup about distributed, non-relational databases. The movement drew on research papers describing Google's Bigtable in 2006 and Amazon's Dynamo in 2007, systems built to handle web-scale data and traffic. Often reinterpreted as not only SQL, the label emphasizes that these systems complement rather than replace relational databases.

NoSQL systems often trade some guarantees for scale and flexibility. Many favor availability when networks fail, accepting eventual consistency, in which replicas may briefly disagree, a trade-off often framed by Eric Brewer's CAP theorem. Flexible schemas speed early development but can push data validation into application code. Since the 2010s the boundaries have blurred: relational systems such as PostgreSQL added strong JSON support, and several NoSQL databases added transactions and SQL-like query languages. The choice depends on data shape, query patterns and consistency needs, and strict ACID requirements often still favor relational systems.

Key points

  • NoSQL databases use document, key-value, wide-column or graph models instead of relational tables.
  • Research papers on Google's Bigtable and Amazon's Dynamo in 2006 and 2007 influenced the movement.
  • Many NoSQL systems scale horizontally and accept eventual consistency in exchange for availability.
  • The line between relational and NoSQL systems has blurred as each adopted features of the other.

Related entries

Glossary term

Database

Programming

Organized collection of structured data stored electronically and managed by software that lets users store, query and update it reliably.

Glossary term

SQL

Programming

Declarative language for defining, querying and modifying data in relational databases, standardized by ANSI and ISO since the 1980s.

Glossary term

JSON

Programming

Lightweight, text-based data interchange format that represents structured data as nested objects and arrays, derived from JavaScript syntax.

Glossary term

ACID

Programming

Set of four properties, atomicity, consistency, isolation and durability, that guarantee database transactions are processed reliably.

Glossary term

Increasing a system's capacity by adding more machines or instances that share the work, rather than making a single machine more powerful.

Technology

PostgreSQL

ProgrammingFOSS

Free and open-source object-relational database system known for reliability, standards compliance and extensibility, descended from Berkeley's POSTGRES.

Glossary term

Graph Theory

ProgrammingIdeas and Culture

Branch of mathematics that studies networks of nodes connected by edges, used to model relationships from road maps to social networks.

Glossary term

Knowledge Graph

AIProgramming

Structured representation of knowledge as a network of entities and the relationships between them, used for search, reasoning and data integration.