What a database's defaults reveal about how it will fail

default = architecture; feature = option

A database's defaults, including isolation level, index structure, and replication quorum, are its real opinions, and benchmarks that omit them measure the benchmark.

A database's default isolation level, index structure, and replication quorum decide how it behaves under load, because those settings are what the engine optimizes for. Everything else is a feature you must configure, and configuration changes the cost, not the shape. Each default makes some operations cheap and others expensive, so the cheap ones show where the system is headed and the expensive ones show where your workload will hurt.

VoltDB runs one CPU thread over a queue of operations, with no locks. If one thread does all the work, every operation must be short, because a slow one stalls everything behind it. Short means no disk access, so data lives in memory. In memory, a hash index gives constant-time point reads, but range queries lose their cheap path, so a sorted index is needed to win them back in logarithmic time. Short also means no waiting on the network, so multi-step logic moves into a stored procedure instead of several client round trips. Memory is expensive, so each node holds less data, and the dataset spreads across more partitions. Any write that crosses partitions then needs two-phase commit. One default, a single thread, predicted the storage medium, the index type, the API shape, and the failure mode.

A vendor's throughput figure hides four settings: isolation level, index structure, replication mode with its quorum, and whether durability is on. VoltDB with its write-ahead log is a different product from VoltDB without it. The number holds only for the configuration that produced it. A team that sizes a cluster from a single-node benchmark, then spreads the data across forty nodes, pays two-phase commit on every transaction touching two of them, and the property that made the number fast is gone. Nothing was misconfigured. Cassandra hides the same gap at the application level: its defaults offer no transaction, so debit-and-credit becomes two writes in application code. A network partition can land one write and drop the other, and no quorum setting repairs that, because there was never a transaction to replicate.

Before trusting any number, get four answers. Ask for the default isolation level and what it costs in aborts or locks. Ask which index structure the engine uses, so you know which operations are cheap. Ask which replication mode and quorum reads and writes use out of the box, and whether durability is on. Then rerun the benchmark at the replication settings and partition count you will actually run. Choose the default that matches your workload's natural unit, not a feature you might enable later. If your reads and writes touch one partition, a leaderless store's defaults fit. If two rows must move together, choose a system whose default makes that atomic, and accept the coarser cost. Reimplementing transactions in application code only moves the failure to an incident. If a vendor cannot state its defaults, treat the number as marketing.

orders of magnitude
Hash index point read
O(1)

A hash probe finds a row by key in constant time. In-memory engines lean on it because it is the cheapest lookup available.

Sorted index range scan
O(log n)

A sorted structure locates the start of a range in logarithmic steps, then reads forward. It is the price of range queries in a hash-first design.

Cross-partition commit
two-phase commit

Prepare and commit run on every partition a write touches. Each added partition adds coordination.

Replication quorum
R + W > N

A quorum read or write waits for enough replicas that reads overlap the latest write. Lowering it to one node per side buys latency and gives up that overlap.

scenario
composite account, written as experience

Seat holds on Iryo ran on the default isolation level of the booking database, which was read committed, because nobody had chosen otherwise. It worked at low traffic. On the first holiday release the same coach row was hit by hundreds of concurrent holds, and the p99 went from eight milliseconds to over two seconds while CPU sat at forty percent.

The wall is that the default told us what the engine expected to be cheap, and we had never read it. Read committed plus a mutable seat row means every hold queues on the same page, and the transaction stays open while the card is authorised upstream, so the lock is held across a network round trip. Capacity was never the issue. The shape of the row was.

What we tried: a longer lock timeout hid the symptom, then a global mutex on the coach made the tail worse by serialising the whole coach instead of one seat. Pre-warming the seat map moved the problem to release time rather than removing it.

The fix used the engine's own assumptions. Holds became insert-only rows keyed by coach and seat, so write conflicts narrowed to the seat, and the seat row was updated by a single writer draining a queue. Holds expire on a TTL. The rule we took away: read the defaults before load does, because they describe what the engine thinks will be cheap.