NoSQL
NoSQL is a broad category of databases that store and retrieve data using models other than the relational tables of rows and columns that SQL databases are built on.
The name is usually read as “not only SQL,” since many of these systems offer SQL-like query languages or run alongside relational databases. Carlo Strozzi first used the term in 1998 for a relational database that lacked a SQL interface. Johan Oskarsson revived it in 2009 as the name of a meetup on open-source, distributed, non-relational databases, and the modern meaning grew from there.
NoSQL databases are commonly grouped by their data model:
- Key-value stores: Map each unique key to a value that the database stores without inspecting its contents, much like a hash table that persists to disk or spans a cluster.
- Document stores: Keep self-describing records in formats such as JSON or BSON, a binary encoding of JSON-like data, and can query the fields inside each document.
- Wide-column stores: Organize data into rows whose sets of columns can differ from row to row. Google’s Bigtable is an early example of the design.
- Graph databases: Model data as nodes and edges, which suits heavily connected data like social networks.
Most of these systems don’t require a fixed schema up front, and many are designed to scale horizontally by partitioning data across the machines of a distributed system. That distribution brings trade-offs described by the CAP theorem. Many NoSQL databases favor availability and accept eventual consistency, where a write reaches every replica after a short delay.
Python’s standard library includes a small key-value store in the dbm module, which stores keys and values as bytes in a file on disk.
Related Resources
Tutorial
Python and MongoDB: Connecting to NoSQL Databases
In this step-by-step tutorial, you'll learn how to use Python to interface with the NoSQL database system MongoDB. You'll get an overview of the differences between SQL and NoSQL, and you'll also learn about related tools, including PyMongo and MongoEngine.
For additional information on related topics, take a look at the following resources:
- TinyDB: A Lightweight JSON Database for Small Projects (Tutorial)
- Web Scraping With Scrapy and MongoDB (Tutorial)
- ChromaDB: Embeddings and Vector Databases in Python (Tutorial)
- Python and MySQL Database: A Practical Introduction (Tutorial)
- TinyDB: A Lightweight JSON Database for Small Projects (Quiz)
- Web Scraping With Scrapy and MongoDB (Quiz)
- Vector Databases and Embeddings With ChromaDB (Course)
- Embeddings and Vector Databases With ChromaDB (Quiz)
- MySQL Databases and Python (Course)
Have a question about this? Mentor AI can show you examples, compare related terms, and point you to tutorials.
By Martin Breuss • Updated Nov. 19, 2026