IonDB

discontinued

by University of British Columbia Okanagan (IonDB Project) · since 2015 · also known as Ion DB

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

key-valueembedded libraryopen source (permissive)legacy

discontinued. README states IonDB is no longer actively developed (last release v2.2.0, Feb 2018); the lab's successor is EmbedDB (github.com/ubco-db/EmbedDB).

Overview

IonDB is a C library that gives tiny embedded devices, mainly Arduinos, a usable associative array with optional persistence to SD card or flash. It offers several dictionary implementations (skip list, open-address and linear hashing, flat files) behind one API, supports duplicate keys and both equality and range lookups, and runs in a few kilobytes of RAM. It came out of Ramon Lawrence's lab at the University of British Columbia Okanagan and was described in an IEEE CCECE 2015 paper. The README now states it is no longer under active development and points to EmbedDB, the same lab's successor that adds time-series and relational processing.

Strengths & trade-offs

Strengths

  • +Runs on Arduino-class boards with only a few KB of RAM
  • +Multiple interchangeable dictionary structures behind one API
  • +Range and equality queries plus duplicate keys, rare at this size
  • +Permissive BSD license and an accompanying peer-reviewed paper

Trade-offs

  • −No longer developed; the authors recommend EmbedDB instead
  • −No transactions, crash-consistency guarantees or query language
  • −Arduino-centric build and documentation

Great for

  • +Teaching data structures on constrained hardware
  • +Prototyping sensor logging on Arduino with SD storage
  • +Reference for embedded key-value designs

Think twice for

  • −New firmware projects (use EmbedDB or a maintained flash KV store)
  • −Anything needing durability guarantees or concurrency

Capabilities

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

✓Durable persistence
–Transactions
–Joins
–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
Schemaless
Architecture
Embedded
Query languages
C API

Designed for kilobytes of RAM and SD-card or flash storage on a single microcontroller.

Deployment

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

Ecosystem

apis & protocolsC API, C++ wrapper
client languagesC, C++

Alternatives to IonDB

Compare all→
LittleDRelational1.2

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

iondb vs littled →
SQLiteRelational75.5

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

iondb vs sqlite →
UnQLiteKey-Value4.1

Embedded, transactional key-value and JSON document engine in a single C file, with Jx9 scripting.

iondb vs unqlite →
LMDBKey-Value39.7

Tiny memory-mapped B+tree with ACID transactions and lock-free readers; reached 1.0 in 2026.

iondb vs lmdb →
EhcacheKey-Value17.6

The standard embedded JVM cache, with heap, off-heap and disk tiers and optional Terracotta clustering.

iondb vs ehcache →
libmdbxKey-Value4.9

Heavily reworked LMDB descendant: memory-mapped ACID B+tree with auto-growing files.

iondb vs libmdbx →

IonDB FAQ

What is IonDB?

IonDB is a key-value database by University of British Columbia Okanagan (IonDB Project), first released in 2015. IonDB is a C library that gives tiny embedded devices, mainly Arduinos, a usable associative array with optional persistence to SD card or flash. It offers several dictionary implementations (skip list, open-address and linear hashing, flat files) behind one API, supports duplicate keys and both equality and range lookups, and runs in a few kilobytes of RAM. It came out of Ramon Lawrence's lab at the University of British Columbia Okanagan and was described in an IEEE CCECE 2015 paper. The README now states it is no longer under active development and points to EmbedDB, the same lab's successor that adds time-series and relational processing.

Is IonDB open source?

Yes. IonDB is open source. License: BSD 3-Clause License.

Does IonDB support ACID transactions?

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

Does IonDB scale horizontally?

IonDB 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 IonDB?

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

What is IonDB best for?

IonDB is a strong fit for teaching data structures on constrained hardware, prototyping sensor logging on Arduino with SD storage and reference for embedded key-value designs. Think twice for new firmware projects (use EmbedDB or a maintained flash KV store).

What are the best alternatives to IonDB?

Common alternatives to IonDB include LittleD, SQLite, UnQLite, LMDB and Ehcache. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is IonDB still maintained?

IonDB is discontinued. README states IonDB is no longer actively developed (last release v2.2.0, Feb 2018); the lab's successor is EmbedDB (github.com/ubco-db/EmbedDB).

How popular is IonDB?

IonDB ranks #587 of 844 databases on the WhichDB Score (1.0/100), and #98 among key-value databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.