Email copiado — support@tuurt.com
Cargando experiencia
architecture · November 17, 2026 · 7 min

SQL or NoSQL for an SMB: the real signal is the access pattern, not the volume

We look at why data volume is not the right signal for evaluating NoSQL, which access pattern actually is, and the mistake of migrating just because another company did.

By Tuurt Team

SQL or NoSQL for an SMB: the real signal is the access pattern, not the volume

Every so often we get a similar request: an SMB that already runs its catalog, orders, and inventory on a relational database, where someone on the team read that some big company migrated to a NoSQL engine and now wants to know if they should do the same. The question almost never comes with a concrete problem that the relational database cannot solve. It comes with an article, a conference talk, or a competitor who mentioned it in a post. That is the first problem we resolve before evaluating any engine: separating "what problem do we have" from "what is someone we admire using".

The choice of database engine is not driven by data volume. An SMB that believes it needs NoSQL because it has "a lot" of orders is almost always thinking of a number that PostgreSQL or MySQL, properly indexed, handle without strain on a modest server. Volume by itself is rarely the right signal. The right signal is the access pattern: how the data is written, how it is read, and above all what guarantees the application needs when several operations touch the same data at the same time.

What a relational model solves without the SMB having to think about it

A store's catalog, its orders, and its inventory are, by nature, data related to one another: an order has line items, each line item references a product, each product has a stock count that a confirmed order must decrement without a concurrent order decrementing it twice. A relational model solves this with foreign keys that prevent referencing a product that does not exist, and with transactions that guarantee that decrementing stock and confirming the order happen as a single atomic operation.

begin;

update inventory
set stock = stock - 1
where product_id = 'prod_4821' and stock > 0;

insert into orders (customer_id, status)
values ('cust_1092', 'confirmed')
returning id;

insert into order_items (order_id, product_id, quantity)
values (currval('orders_id_seq'), 'prod_4821', 1);

commit;

If the update affects no rows because stock already reached zero, the transaction can be rolled back before the commit, and the order is never confirmed with negative stock. That guarantee -that two concurrent orders for the same product cannot leave stock at an invalid number- is exactly the kind of problem a relational database with ACID transactions solves inside the engine, without the team having to hand-write that coordination logic in the application.

On top of that, the questions a business asks about its own data almost always cross several entities at once: how much each category sold last month, which customers bought a specific product, which orders are running late by supplier. A join answers that in a single declarative query.

select c.name, sum(oi.quantity * p.price) as total
from orders o
join customers c on c.id = o.customer_id
join order_items oi on oi.order_id = o.id
join products p on p.id = oi.product_id
where o.status = 'confirmed'
group by c.name
order by total desc;

Reproducing that same query against a document database with no native join support almost always means pulling several collections into the application and combining them in memory, or keeping denormalized, duplicated data that has to be kept in sync by hand every time something changes. For an SMB with a small team, that recurring maintenance cost rarely pays for itself when the relational model already answered the question with one query.

When evaluating a NoSQL engine actually makes sense

This does not mean NoSQL is never warranted. There are concrete technical signals that justify evaluating it seriously:

  • The shape of the data varies from record to record, and that variation is part of the domain, not a modeling flaw: a content catalog where each article type has different fields, dynamic forms the end customer configures, product configurations with attributes that change by category. Forcing that into fixed columns ends up in tables with dozens of null columns, or in generic attribute tables that are, in practice, harder to query than a flexible document.
  • The access pattern is almost always by key, with no need to cross entities: a session table, a cache of already-computed results, a telemetry event log written at high volume and read by time range or by identifier, where no read needs to be combined with other tables.
  • Writes are append-only and very high volume, like audit logs or analytics events, with no in-place updates and no need for multi-row transactions, where partitioning horizontally by a simple identifier is enough to scale.

When an SMB genuinely has one of these cases -not a suspicion that it might- we evaluate a document or key-value engine for that specific part of the system, almost always alongside the relational database that keeps handling orders, inventory, and customers, not as a replacement for it.

The mistake: migrating by imitation instead of by need

The pattern we see most often is not an SMB with a real scaling problem, it is an SMB that heard "modern companies use NoSQL" and wants to align with that idea without anyone having identified which of the three signals above actually applies to their case. The risk of that path is not just the cost of the migration itself. It is losing, with nothing to replace them, the guarantees the relational engine was already giving away for free: referential integrity, atomic transactions, and declarative queries that cross entities. Those guarantees do not disappear because the team decides it no longer needs them; they become the application code's responsibility, which now has to reimplement by hand, and with more bugs, what the relational engine used to handle transparently.

What did not work the first time

In an evaluation we did for an ecommerce order catalog, the client's initial request was to migrate the orders and inventory tables to a document database, motivated by a case study from another company they had read about. We ran a scoped trial: we migrated only the orders module to documents, with each order as a document embedding its line items, and left inventory where it was.

The problem showed up immediately with stock decrements. Before, confirming an order and decrementing the product's stock happened inside the same relational transaction, so two concurrent orders for the last unit in stock could never both get confirmed. With orders as independent documents and inventory still in the relational database, that coordination no longer existed in the engine: the application had to read the stock, decide whether to confirm the order, write the document, and then update the stock in a different database, with a window between those steps where another concurrent order could read the same stock before it was updated. The result was orders confirmed with no stock available, a problem the original relational database never had, because the transaction prevented it at the engine level, not in application code.

The fix was to revert the orders module back to the relational database and limit the document database, in a second iteration, to what genuinely had a variable shape and no need for cross-entity transactions: product records with attributes that change by category, which did benefit from a flexible schema. The lesson was not that document databases are bad, it was that we migrated the part of the system with the wrong signal -a real need for a flexible schema elsewhere in the domain made us assume the migration applied to everything- instead of evaluating each entity by its own access pattern.

What we check before approving or rejecting a NoSQL migration

Before giving a migration the green light, we identify whether the entity in question needs transactions that cross several tables, or whether it lives on its own and is accessed by key. We check whether the SMB's team has, or can reasonably acquire, the operational discipline to maintain the consistency the relational engine used to guarantee for free. And when the initial motivation for the request is "a company we admire uses this engine", we ask for the concrete technical signal to be identified before going any further, because without that signal the migration almost always trades guarantees that already worked for a new maintenance cost nobody asked for.

sql nosql databases architecture
← Back to blog