Case Study 1A.6: The Scale Dilemma (SQL vs NoSQL)

Scaling 100 GB - Petabytes

When the structured monolith falls over. First, the industry panicked and dropped ACID (the rules for safe financial transactions) for NoSQL's horizontal scale. Now, Modern Distributed SQL parallelizes the execution engine without losing safety.

How to think of SQL and NoSQL in 2026

When your database balloons to Terabytes, a single machine's memory isn't enough. That's where the real contrast lies: algorithms that shine on small data crumble at scale.

Back in the early Big Data days, the industry ditched SQL and its ACID guarantees for NoSQL, all in the name of horizontal scale. (We'll dive into "ACID Transactions" in Section 4, but think of it as the rules that keep your bank balance accurate.)

Fast forward to today, and Modern SQL has entered the scene—distributed over clusters without losing its edge.

These insights are from a 2026 perspective, where SQL and NoSQL are no longer at odds.

Note: This wasn't the case in the 2000s when SQL was the king, and NoSQL was the wild west. Nor was it true in the early 2020s when JSONB wasn't yet a first-class citizen in SQL databases.

The "Swiss Army Knife" (Modern SQL) vs. Ultra-Specialized Systems

For about 80% of all apps—think Instagram, banking apps, school portals—a modern SQL database like PostgreSQL or MySQL is the right call. Stop over-engineering.

Once upon a time, SQL was about rigid tables. Today, it's absorbed the best features of its competitors, becoming a true "Swiss Army Knife" for data. This is a "Game Changer" for the 2020s:

The Modern SQL Table: One Table, Three Worlds

User ID (Standard) Name (Standard) Preferences (JSONB) Taste Profile (Vector)
101 Bob {"theme": "dark", "genres": ["Jazz", "Lo-fi"]} [0.12, -0.98, 0.45, ...]
102 Alice {"theme": "light", "notifications": false} [0.88, 0.11, -0.23, ...]
  1. Standard Columns (The 80%): User ID and Name are classic SQL. Rigid, organized, and clean.

  2. JSONB Column (The "NoSQL" part): Preferences let you add a "Favorite Color" for Bob without altering the whole table. Just toss it into the JSON "bucket." Flexible and fast. This is why SQL swallowed the NoSQL movement.

  3. Vector Column (The "AI" part): Taste Profile uses AI embeddings to capture music preferences.

When to go Ultra-Specialized? [The 2026 View]

If Modern SQL is so versatile, why bother with other systems? It's for the remaining 20% when specialization is key.

The goal for most developers in 2025 is to start with the 80% (SQL) and only pivot to specialized systems when scale demands it.

The NoSQL To SQL Migration

HBase Deprecation at Pinterest
Why Pinterest moved away from NoSQL back to SQL systems. A case study in choosing the right tool for the job.

Why NoSQL Deployments Are Failing at Scale
Industry analysis on NoSQL limitations and why companies are returning to SQL-based systems.

Why Companies Transitioned Data Stacks From NoSQL to SQL

Here's a summary of why and how Google’s Spanner evolved from a pure key-value store to a SQL system. Focus on the big picture and get a sense of the tradeoffs. (It’s a PhD-level paper, so don't worry about understanding all the details.)