# Relational database: Levers

Source page: https://www.materialinsights.org/technologies/relational_database/tech-levers/

Held back most by

Economics

The theory is mature, and the CAP and light-speed limits bite only when copies sit at distant sites; what most shapes choices is cost and lock-in, since moving between products means rewriting schemas and stored code (our judgement). Relational systems held the top four places in DB-Engines' July 2025 popularity ranking, which counts mentions, searches and jobs, not installations ^[13]^[17]. Data rules such as the RBI's 2018 payment-data rule ^[14] are met by hosting in India rather than by changing the database (our judgement).

#### The six layers

Mathematics, science, engineering, production, economics, and resources and rules: what each gives, the idea in plain words, the limit (hard or soft) and how close today is, what could unlock it, and the maths behind it

Six layers make a technology possible, from the mathematics underneath to the resources and rules it needs at world scale. A **hard limit** comes from mathematics or nature and can only be sidestepped; a **soft limit** moves with effort, scale, money or policy.

1.  1 Mathematics Hard limit

Mathematics is the technology

**What it gives.** Relational algebra treats tables as sets of rows and gives a small set of exact operations, so any question becomes a combination of them ^[8].

**The idea.** The working part is mathematical, so the role is foundation (our judgement). Selection picks the rows that satisfy a condition, and projection keeps chosen columns ^[8].

**The limit.** The CAP theorem says that, in an asynchronous network where messages can be lost, a shared data object cannot be both always available and atomically consistent ^[9]. A database spread over several sites must choose which to give up during a failure of the network between them.

**What could unlock it.** The theorem rests on the network losing messages: a single-site database does not face it, and a system can choose consistency or availability by design (our judgement) ^[9].

Show the maths σpredicate(R) πA1, A2, …, An(R)

**σ**
: selection: keep only the rows of R for which the condition is true

**predicate**
: the condition a row must satisfy, such as amount > 100

**π**
: projection: keep only the listed columns

**R**
: a table

**A1, A2, …, An**
: the names of the columns to keep

**In plain words.** Selection works down the table and keeps the rows you want. Projection works across it and keeps the columns you want. Each step takes a table and returns a table, so steps can be chained.

**Worked example.** Take a table R of orders (assumed): (Asha, 120), (Ravi, 80), (Asha, 40), (Meena, 150), with columns customer and amount. Selection with amount > 100 keeps 2 rows: (Asha, 120) and (Meena, 150). Projection on customer then gives 2 names, Asha and Meena (calculated) ^[8].

2.  2 Science Hard limit

**What it gives.** Magnetic and electronic storage hold the records; physics enters when copies sit far apart (our judgement).

**The idea.** Light inside fibre travels at roughly 2/3 of its speed in vacuum ^[10]. A database that waits for a distant copy to confirm each change cannot finish faster than the light's round trip.

**The limit.** The speed of light in fibre is a hard physical floor on the delay between distant sites, whatever the software ^[10].

**What could unlock it.** Keep the confirming copy close, or confirm later and accept a short period when copies differ (our judgement); only the distance, not the physics, can change.

Show the maths v ≈ ⅔ c

**v**
: the speed of light in the fibre, in kilometres per second

**c**
: the speed of light in a vacuum, about 299,792 kilometres per second

**In plain words.** Light is slower inside glass than in empty space, about two thirds as fast. So a signal over a long cable always takes a set time, and a reply takes the same time back.

**Worked example.** Take a fibre route of 1,000 km (assumed) and c = 299,792 km/s (assumed): v = 2/3 × 299,792 = 199,861 km/s; one way 1,000 / 199,861 = 5.0 ms; round trip 10.0 ms (calculated) ^[10]. The source uses 204,000 km/s, which gives 9.8 ms (calculated).

3.  3 Engineering Soft limit

**What it gives.** A database engine that keeps many queries moving at once while keeping each transaction whole (our judgement).

**The idea.** The number of queries inside the database at once follows Little's law: the average arrival rate times the average time each one stays ^[11].

**The limit.** Throughput is limited by how many queries the machine can hold at once and how long each takes; slow queries pile up quickly (our judgement) ^[11].

**What could unlock it.** Indexes and a good query plan cut the time each query stays, which cuts the number held at once (our judgement).

Show the maths L = λ W

**L**
: the average number of queries in the system, a count

**λ**
: the average rate at which queries arrive, in queries per second

**W**
: the average time each query spends in the system, in seconds

**In plain words.** If queries arrive faster, or each takes longer, more of them are in progress at once. Multiply the rate by the time to find how many.

**Worked example.** If 2,000 queries arrive each second (assumed) and each takes 0.005 seconds (assumed), L = 2,000 × 0.005 = 10 queries at once (calculated) ^[11].

4.  4 Production Soft limit

**What it gives.** Software is copied at no cost, so what a producer makes is trust: that every copy behaves the same (our judgement).

**The idea.** SQLite, a very widely used engine, reports 100% branch test coverage of its core and 590 times as much test code as library code, on a page last updated in April 2026 ^[12].

**The limit.** Few projects can afford such testing, and testing cannot prove the absence of faults (our judgement).

**What could unlock it.** Shared open engines let many users rely on one tested code base ^[12].

5.  5 Economics Soft limit Binds most today

**What it gives.** A standard query language and tables mean a user can often change supplier without rewriting everything, though not at no cost (our judgement).

**The idea.** In DB-Engines' popularity ranking for July 2025, the top four places were Oracle, MySQL, Microsoft SQL Server and PostgreSQL, all relational, with MongoDB, a document system, fifth ^[13]. The ranking counts web mentions, searches, job offers and discussions, not installations or use ^[17].

**The limit.** Switching costs bind: schemas, stored code and staff skills are tied to one product, and rival models such as documents compete for new projects (our judgement) ^[13].

**What could unlock it.** Standard SQL and open products lower the cost of moving (our judgement).

6.  6 Resources and rules Soft limit

**What it gives.** Rules on where data may sit and how it must be protected decide how a database is run in India.

**The idea.** On 6 April 2018 the RBI directed that the entire data relating to payment systems is stored in a system only in India ^[14]. The Digital Personal Data Protection Act 2023 requires a data fiduciary to protect personal data by taking reasonable security safeguards ^[15].

**The limit.** Data localisation rules limit use of foreign-hosted databases for covered data and add the cost of Indian hosting; they apply to payment data and not to all data (our judgement).

**What could unlock it.** Hosting in India-based data centres by cloud providers meets the rule without changing the database itself (our judgement).

[Cld Cloud computing](https://www.materialinsights.org/technologies/cloud_computing/)

as of 2026-11-24

#### Sources

1. [Advanced Database Systems, Lecture 3: Relational Algebra](https://opencourse.inf.ed.ac.uk/sites/default/files/https/opencourse.inf.ed.ac.uk/adbs/2024/lecture03-ra.pdf) Course slides on opencourse.inf.ed.ac.uk (host of the University of Edinburgh School of Informatics; the slides name no university), Spring 2024, 2024
2. [Brewer's Conjecture and the Feasibility of Consistent, Available, Partition-Tolerant Web Services (course copy; ACM SIGACT News 33(2), 2002)](https://www.cs.princeton.edu/courses/archive/spring22/cos418/papers/cap.pdf) Seth Gilbert and Nancy Lynch, 2002
3. [Dissecting Latency in the Internet's Fiber Infrastructure (arXiv:1811.10737)](https://arxiv.org/pdf/1811.10737) Bozkurt et al., arXiv, 2018
4. [Little's Law as Viewed on Its 50th Anniversary (Operations Research 59(3), 536 to 549, 2011)](https://people.cs.umass.edu/~emery/classes/cmpsci691st/readings/OS/Littles-Law-50-Years-Later.pdf) John D. C. Little, course reading copy at the University of Massachusetts, 2011
5. [How SQLite Is Tested (last updated 21 April 2026)](https://www.sqlite.org/testing.html) SQLite, 2026
6. [DB-Engines Ranking (German-language page as served on access, showing July 2025)](https://db-engines.com/de/ranking) DB-Engines (solid IT), 2025
7. [Storage of Payment System Data](https://rbi.org.in/scripts/FS_FAQs.aspx?Id=130) Reserve Bank of India, 2018
8. [The Digital Personal Data Protection Act, 2023 (Act No. 22 of 2023), section 8(5)](https://www.indiacode.nic.in/bitstream/123456789/22037/2/a2023-22.pdf) Government of India, India Code, 2023
9. [Method of calculating the scores of the DB-Engines Ranking (undated)](https://db-engines.com/en/ranking_definition) DB-Engines (solid IT), 2026

## Other sections

- [Summary](https://www.materialinsights.org/technologies/relational_database/index.md)
- [Overview](https://www.materialinsights.org/technologies/relational_database/tech-overview/index.md)
- [Science](https://www.materialinsights.org/technologies/relational_database/tech-science/index.md)
- [Evolution](https://www.materialinsights.org/technologies/relational_database/tech-evolution/index.md)
- [Energy footprint](https://www.materialinsights.org/technologies/relational_database/tech-energy-footprint/index.md)
- [Industries](https://www.materialinsights.org/technologies/relational_database/tech-industries/index.md)
