What is NoSQL?
NoSQL means "not only SQL": databases that skip fixed tables for documents, key-value pairs or graphs. What each type is good at, and why most new apps still start relational.

Key takeaways
- NoSQL is an umbrella term for databases that do not use fixed tables: document, key-value, wide-column and graph stores.
- Document stores are flexible and fast for reading one whole record, but connecting records across collections is harder than a SQL join.
- Postgres can store flexible JSON columns too, so many apps get most of the NoSQL benefit without giving up relations.
Rather than one technology, NoSQL is an umbrella term for databases that store data in something other than fixed rows and columns: whole documents, simple key-value pairs, wide columns or graphs of connected nodes. The name is usually read as "not only SQL." Popular examples include MongoDB and Firestore (documents), Redis (key-value) and Neo4j (graphs).
An everyday example: labeled boxes versus a filing cabinet
A SQL database is a filing cabinet with printed forms: every customer card has the same fields, and orders live in a separate drawer, linked by customer number. A document database is a set of labeled boxes: each customer's box holds their details and their orders together, and one box can contain things another box does not. Grabbing one customer's whole history is quick, because it is all in one box. Asking "which products sold most across all customers" means opening every box.
The same customer as a document:
`{ "id": "c_81", "name": "Dana", "orders": [ { "item": "mug", "total": 18 }, { "item": "poster", "total": 32 } ] }`
The four main kinds
- Document stores keep JSON-like records in collections. Good for content with varying fields, like product listings where a shirt has sizes and a lamp has wattage.
- Key-value stores map a key to a value, like a giant dictionary. Very fast; used for caches, sessions and rate-limit counters rather than as an app's main database.
- Wide-column stores spread huge volumes of rows across many machines. Built for very high write volume such as sensor or event data.
- Graph databases store nodes and the relationships between them. Good for "friends of friends" or recommendation questions.
The real trade-offs
NoSQL's flexibility is real: you can add a field to new records without changing anything else. The cost shows up later. With no enforced structure, the app must cope with old records that lack the new field. Data often gets duplicated (the customer name copied into every order), so a rename has to update many places. And most business apps are full of relationships: bookings link customers, staff and services; marketplaces link buyers, sellers, listings and payments. Those questions are what SQL joins and foreign keys are built for.
There is also a middle path. Postgres has a `jsonb` column type that stores flexible JSON inside a normal table and can be queried and indexed. A `products` table with fixed columns for price and stock plus a `jsonb` column for category-specific attributes covers the "every product is different" case without giving up relations.
Why it matters when building with Startbase
Startbase Cloud is a managed Supabase backend, and its database is Postgres, a SQL database. If you have used a NoSQL tool before, you do not need to change how you describe the app: talk about the things in it and how they relate, and the agent designs tables. When part of your data really is free-form, say so and ask for a JSON column rather than a separate database.
Products in my shop have different attributes per category: clothing has sizes and colors, prints have dimensions and paper type, mugs have capacity. Keep price, stock and category as normal columns, store the category-specific attributes in a JSON column, and let shoppers filter by size on the clothing page.
Related reading: database basics for non-developers, what is SQL and what is Supabase.
Common confusions
- NoSQL is not automatically faster. It is faster for the access patterns it was designed around and slower for the ones it was not.
- NoSQL is not schemaless in practice. Your app still expects certain fields. The schema just lives in your code instead of the database.
- Using Redis does not make your app a NoSQL app. Many SQL-backed apps add a key-value store purely as a cache.
Frequently asked questions
Is NoSQL better for scaling?
Some NoSQL systems spread data across machines more easily, which matters at very large scale. Most apps never reach the point where a well-indexed Postgres database is the limit.
Should a beginner start with SQL or NoSQL?
For an app with users, records and relationships between them, start with SQL. Add a key-value store later if you need a cache, or a JSON column for the parts that truly vary.

