LittleD

discontinued

by Graeme Douglas (University of British Columbia Okanagan) · since 2014 · also known as Little D

Relational SQL database for microcontrollers and sensor nodes that runs most queries in about 1 KB of RAM.

relationalresearch prototypeopen source (permissive)legacy

discontinued. Academic prototype (UBC Okanagan, c. 2014-2016); no commits since Sept 2016. The lab's later work continued in IonDB and EmbedDB.

Overview

LittleD is a research relational database by Graeme Douglas (with Ramon Lawrence at UBC Okanagan) for microprocessors so small that even SQLite will not fit. It parses SQL on the device and supports CREATE TABLE, INSERT and SELECT-FROM-WHERE with projections, selections over arbitrary expressions and inner joins, all executed in a caller-supplied memory segment of roughly 1 KB for typical queries. Only integers and fixed-width strings are supported, and features such as aggregation, query pre-compilation and better indexing were left as future work. It was described in ACM and UBC papers around 2014 and the last commit was in 2016; its sister project was the IonDB key-value store.

Strengths & trade-offs

Strengths

  • +On-device SQL parsing and execution in about 1 KB of RAM
  • +Inner joins and arbitrary WHERE expressions on microcontrollers
  • +Caller-provided memory segment gives deterministic memory use
  • +Documented in peer-reviewed papers; Apache-licensed

Trade-offs

  • −Research prototype, unmaintained since 2016
  • −Only integers and fixed-width strings; no aggregation or updates beyond INSERT
  • −No transactions or crash recovery

Great for

  • +Teaching query processing under extreme memory limits
  • +Prototyping SQL access to sensor data on microcontrollers

Think twice for

  • −Production firmware
  • −Devices with enough memory for SQLite

Capabilities

Native or official first-party support · 2 of 25 tracked

✓Joins
✓Durable persistence
–Transactions
–Secondary indexes
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Compression
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Small · ≤ 100 GB
Horizontal scaling
None
Multi-region
No
Transactions
None
Consistency
Strong
Schema
Strict
Architecture
Embedded
Query languages
SQL (subset)

Targets devices with a few KB of RAM.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsC API
client languagesC

Alternatives to LittleD

Compare all→
IonDBKey-Value1.0

Key-value store for Arduino-class microcontrollers from UBC Okanagan; superseded by EmbedDB.

littled vs iondb →
SQLiteRelational75.5

The in-process SQL engine that ships in every phone, browser and OS: one file, zero servers.

littled vs sqlite →
eXtremeDBKey-Value4.0

Embedded in-memory and hybrid database for devices, real-time systems and time-series analytics.

littled vs extremedb →
Raima Database ManagerRelational0.0

Small-footprint embedded database with SQL and network-model APIs for RTOS, edge and safety-certified devices.

littled vs raima-database-manager →
Mimer SQLRelational8.6

Swedish standards-strict SQL engine built for embedded, automotive and real-time systems.

littled vs mimer-sql →
Microsoft AccessRelational45.8

Desktop database and forms builder bundled with Microsoft 365; still everywhere in back offices.

littled vs microsoft-access →

LittleD FAQ

What is LittleD?

LittleD is a relational database by Graeme Douglas (University of British Columbia Okanagan), first released in 2014. LittleD is a research relational database by Graeme Douglas (with Ramon Lawrence at UBC Okanagan) for microprocessors so small that even SQLite will not fit. It parses SQL on the device and supports CREATE TABLE, INSERT and SELECT-FROM-WHERE with projections, selections over arbitrary expressions and inner joins, all executed in a caller-supplied memory segment of roughly 1 KB for typical queries. Only integers and fixed-width strings are supported, and features such as aggregation, query pre-compilation and better indexing were left as future work. It was described in ACM and UBC papers around 2014 and the last commit was in 2016; its sister project was the IonDB key-value store.

Is LittleD open source?

Yes. LittleD is open source. License: Apache License 2.0.

Does LittleD support ACID transactions?

No. LittleD does not provide ACID transactions; its consistency model is strong.

Does LittleD scale horizontally?

LittleD does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB).

How can I run LittleD?

You can embed it in your application and run it at the edge.

What is LittleD best for?

LittleD is a strong fit for teaching query processing under extreme memory limits and prototyping SQL access to sensor data on microcontrollers. Think twice for production firmware.

What are the best alternatives to LittleD?

Common alternatives to LittleD include IonDB, SQLite, eXtremeDB, Raima Database Manager and Mimer SQL. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is LittleD still maintained?

LittleD is discontinued. Academic prototype (UBC Okanagan, c. 2014-2016); no commits since Sept 2016. The lab's later work continued in IonDB and EmbedDB.

How popular is LittleD?

LittleD ranks #571 of 844 databases on the WhichDB Score (1.2/100), and #176 among relational databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.