From hand-built record files to globally replicated managed services, each generation of databases solved the previous one's biggest pain and introduced a new one. This timeline follows that chain of problems.
1960s
Stage 1
File-based storage and early database systems
The problem
Programs kept their data in their own files, each with a private layout. Sharing data between programs, or finding records quickly as files grew, meant writing new code every time.
What came before fell short because
Every program had to know exactly how records were stored and linked. Changing the layout broke every program that read it, and the same data was often copied into many files that drifted apart.
What changed
Teams built shared database systems with one central store and a defined structure. IBM's IMS, created with Rockwell and Caterpillar for parts tracking on the Apollo program, organized records as trees (hierarchical). The CODASYL committee's work defined network databases, in which records point to each other and programs follow those links.
Benefits
Many programs could share one consistent copy of the data, and the system handled storage, access and recovery instead of each program doing it alone.
New problems it created
Programs still navigated record by record along fixed paths. A question the designers had not planned for needed new navigation code, and changing the structure still meant rewriting programs.
Where you see it today
IBM reports that companies, including many large financial institutions, still rely on IMS. The idea of following links between records lives on in graph databases.
Navigational databases tied what a program asked for to how the data was physically stored and linked.
What came before fell short because
Applications broke when storage changed, and new kinds of questions required programmers who understood the internal pointers.
What changed
E. F. Codd's 1970 paper at IBM Research proposed storing data as tables (relations) of rows and columns, and asking questions in terms of the data's values instead of its storage paths.
Benefits
Programs could describe what data they wanted and leave the system to work out how to fetch it. Storage could change without breaking applications.
New problems it created
1970s
Stage 3
System R, Ingres and SQL
The problem
The relational model was a theory. Engineers needed working systems and a practical query language people could learn.
What came before fell short because
Early prototypes had to show that declarative queries, concurrent users and crash recovery could all work together with acceptable performance.
What changed
IBM Research's System R project and the Ingres project at the University of California, Berkeley built full relational systems. System R produced the query language that became SQL; Ingres used its own language, QUEL.
Benefits
These projects showed relational databases could be practical, and SQL gave developers a shared language for querying data that later became an industry standard.
1970s
Stage 4
B-tree indexes and query optimization
The problem
Finding one row among millions by reading the whole table is far too slow, and a declarative query can be executed in many ways with very different costs.
What came before fell short because
Simple sorted files are slow to update, and simple hash tables cannot answer range questions such as "all orders from last week". Picking a query plan by hand defeats the point of a declarative language.
What changed
Rudolf Bayer and Edward McCreight described the B-tree, a balanced, disk-friendly index that stays efficient as data is inserted and deleted (first reported in 1970, journal paper 1972). The System R team (Selinger et al., 1979) described cost-based query optimization, which uses statistics about the data to estimate and choose the cheapest plan.
Benefits
Lookups and range scans became fast even on very large tables, and the database could choose a good execution plan without the programmer specifying one.
1980s–2000s
Stage 5
Replication, primaries and read replicas
The problem
One database server is a single point of failure, and as applications grew, one machine could not handle all the read traffic.
What came before fell short because
Buying a bigger machine has a ceiling and a price that rises steeply, and it still leaves you with one machine that can fail.
What changed
Databases learned to copy their changes to other servers. A common pattern has one primary that accepts writes and one or more replicas that receive a copy of every change and can serve reads or take over if the primary fails.
Benefits
Read traffic could be spread across many servers, and a standby copy made recovery from hardware failure much faster.
New problems it created
2000s
Stage 6
Sharding and partitioning at web scale
The problem
Large web services gained so many users that a single primary could not keep up with writes, and the data no longer fit comfortably on one server.
What came before fell short because
Read replicas do not help with writes, because every replica still has to apply every change.
What changed
Teams split their data into shards, each a separate database holding part of the rows, for example by user ID. At first the application chose the shard for each query; later, routing layers such as Vitess, created at YouTube in 2010 for MySQL, moved that logic into a proxy.
Benefits
Write capacity and storage could grow by adding shards, with each shard small enough to manage.
New problems it created
2006–2012
Stage 7
Distributed NoSQL and NewSQL
The problem
Very large services needed storage that spread across thousands of machines and kept working when some of them failed, which hand-sharded relational databases did poorly.
What came before fell short because
Classic relational databases assumed one machine or a small cluster, and strong consistency across many machines was slow and complex.
What changed
Google's Bigtable paper (2006) described a wide-column store split automatically into ranges across many servers. Amazon's Dynamo paper (2007) described a highly available key-value store that accepts writes during failures and reconciles copies later (eventual consistency). Google's Spanner paper (2012) showed a globally distributed database with SQL-style transactions and strong consistency, an approach later called NewSQL.
Benefits
Storage could scale out across many machines and data centers with failures handled automatically. Spanner showed that scale did not always require giving up transactions.
2009–2015
Stage 8
Managed cloud databases
The problem
Running a database well takes constant operational work, such as installation, patching, backups, replication and failover, which most teams did not want to staff.
What came before fell short because
Every team rebuilt the same operations practices, often imperfectly, and capacity had to be bought in advance.
What changed
Cloud providers began running databases as a service. Amazon RDS launched in October 2009 with MySQL. Amazon Aurora, announced in November 2014 and generally available in July 2015, redesigned the storage layer of a MySQL-compatible database for the cloud, as its SIGMOD 2017 paper describes.
Benefits
Teams could create a replicated, backed-up database in minutes and pay for it by the hour, leaving routine operations to the provider.
It was not yet clear that a system working this way could be fast enough for real workloads. Someone had to build one and prove it.
Where you see it today
Nearly every mainstream database today, from PostgreSQL and MySQL to cloud services, is built on the relational model or offers a relational interface.
Running high-level queries efficiently on large tables depended on good indexes and on choosing a good plan for each query automatically.
Where you see it today
SQL is still the main language for relational databases. Berkeley's later POSTGRES project, led by Michael Stonebraker of the Ingres team, became the ancestor of PostgreSQL.
Every index speeds up reads but slows down writes and uses space, and an optimizer working from stale statistics can pick a bad plan.
Where you see it today
B-trees and their variants remain the default index in most relational databases, and cost-based optimizers still choose plans for every SQL query you run.
Replicas can lag behind the primary, so a read may return slightly old data. Failover needs care to avoid losing recent writes, and all writes still go to one primary.
Where you see it today
Primary-replica replication is standard in PostgreSQL, MySQL and managed cloud databases, and read replicas are a common first step when an application outgrows one server.
Queries and transactions that span shards become hard or slow, uneven shards create hot spots, and moving data between shards is risky operational work.
Where you see it today
Sharding is still how many large relational deployments scale, either by hand or through tools and databases that shard automatically.
Eventually consistent systems push conflict handling onto developers, and data modeling without joins is harder. Globally consistent systems pay for coordination with extra latency and complexity.
Where you see it today
Systems influenced by these papers, such as Cassandra, HBase, DynamoDB, CockroachDB and Spanner itself, run large parts of today's internet services.
Managed services limit how far you can tune or inspect the system, tie you to a provider's features and pricing, and do not remove the need to design schemas, queries and capacity well.
Where you see it today
Managed relational and NoSQL services are now a default choice for new applications on every major cloud.