Skip to content
Xavi Creus

Data

NoSQL

NoSQL is a family of databases that store data in flexible formats such as documents or key-value pairs instead of fixed tables, built for scale and speed.

Definition

NoSQL is a broad term for databases that do not use the traditional relational model of fixed tables, rows and columns. They store data as flexible documents (MongoDB), key-value pairs (Redis, DynamoDB), wide columns (Cassandra) or graphs (Neo4j). They emerged in the late 2000s when web companies needed to store enormous volumes of fast-changing data across many machines, and relational databases of the time struggled to scale horizontally.

In a company, NoSQL databases show up in specific roles: caching frequently accessed data so pages load instantly, storing user sessions and shopping carts, handling product catalogues where every item has different attributes, logging events at high volume, and powering real-time features such as chat or notifications. Vector databases, used for AI retrieval, are a recent member of the same family. Most companies run a relational database for core business records and one or more NoSQL stores alongside it.

The misconception, common a decade ago, was that NoSQL would replace SQL databases. It did not. Relational databases such as PostgreSQL learned to store flexible documents and to scale further, and NoSQL databases added query languages and stronger consistency guarantees. The line has blurred. The practical rule in 2026: use a relational database by default for data that must be correct, and reach for NoSQL when a specific access pattern, scale or flexibility need justifies it.

In practice

An e-commerce company keeps orders and payments in PostgreSQL, where correctness is essential, and uses a document database for its product catalogue, where a sofa and a phone charger have entirely different attributes. A key-value cache in front makes the storefront feel instant.

Why it matters

NoSQL is a tool for specific problems, not a modern replacement for the database that runs your business. When an engineer proposes one, the right question is which access pattern it solves and how you will keep the data consistent with your system of record.

Frequently asked questions

When should you use NoSQL instead of SQL?
When your data does not fit neatly into fixed tables, when you need extreme write volume or horizontal scale across many machines, when you need very fast reads for caching, or for specialised cases such as graph relationships and vector similarity search. For core business records where correctness matters, a relational database remains the default.
Is MongoDB better than PostgreSQL?
Neither is better in general. MongoDB stores flexible documents and scales horizontally easily, which suits catalogues, content and rapidly evolving schemas. PostgreSQL enforces structure and consistency, handles complex queries and now also stores documents well. Many teams choose PostgreSQL by default and add MongoDB or similar for specific needs.

Need this explained for your company?

One hour with me is usually enough to turn the vocabulary into a decision.

Book a session