OlegDB

maintenance

by Quinlan Pfiffer and Kyle Terry · since 2014

Tongue-in-cheek but working C/Go key-value store: mmap hash table, LZ4, splay-tree cursors and a REST API.

key-valuedatabase engineopen source (permissive)legacy

maintenance. No feature work since the 0.1.7 tag (April 2020); only an occasional build fix (October 2025).

Overview

OlegDB is a small key-value datastore that began in 2014 as a joke about NoSQL marketing (its consistency model is 'MAYO') but is real, working software. The core is a C library, liboleg, implementing a concurrent hash table keyed with MurmurHash3, an optional splay tree for ordered cursor iteration and prefix matching, LZ4 value compression, key expiry, a memory-mapped values file and an append-only log for persistence that can be compacted; a Go server puts an HTTP interface in front of it, and the library can be embedded directly. The last tagged release is 0.1.7 (April 2020), with a single compile fix pushed in October 2025. Fun to read and hack on; not something to bet a product on.

Strengths & trade-offs

Strengths

  • +Small, well-documented C codebase that is pleasant to read
  • +Ordered iteration and prefix matching via splay trees
  • +Embeddable library or HTTP server

Trade-offs

  • −Hobby project with no active development
  • −No transactions, replication or authentication
  • −250-character key limit

Great for

  • +Learning how hash-table key-value stores work
  • +Toy or hobby services needing a REST KV store

Think twice for

  • −Production data
  • −Anything needing security or high availability

Capabilities

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

✓TTL / expiry
✓Durable persistence
✓Compression
–Transactions
–Joins
–Secondary indexes
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–Pub/Sub
–Columnar storage
–In-memory
–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
Single node, Client server, Embedded
Query languages
Key-value API

Deployment

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

Ecosystem

apis & protocolsHTTP REST, C API (liboleg)
client languagesC, Go

Alternatives to OlegDB

Compare all→
RedisKey-Value84.3

The in-memory data structure server that became the default cache, now with search, JSON and vectors built in.

olegdb vs redis →
ValkeyKey-Value58.0

The Linux Foundation's BSD-licensed fork of Redis, now the default engine on AWS and Google Cloud.

olegdb vs valkey →
LMDBKey-Value39.7

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

olegdb vs lmdb →
bboltKey-Value11.5

etcd's maintained fork of BoltDB: a simple, pure-Go B+tree store in a single file.

olegdb vs bbolt →
EhcacheKey-Value17.6

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

olegdb vs ehcache →
Chronicle MapKey-Value8.7

Off-heap, memory-mapped key-value store for Java with microsecond latency and cross-process sharing.

olegdb vs chronicle-map →

OlegDB FAQ

What is OlegDB?

OlegDB is a key-value database by Quinlan Pfiffer and Kyle Terry, first released in 2014. OlegDB is a small key-value datastore that began in 2014 as a joke about NoSQL marketing (its consistency model is 'MAYO') but is real, working software. The core is a C library, liboleg, implementing a concurrent hash table keyed with MurmurHash3, an optional splay tree for ordered cursor iteration and prefix matching, LZ4 value compression, key expiry, a memory-mapped values file and an append-only log for persistence that can be compacted; a Go server puts an HTTP interface in front of it, and the library can be embedded directly. The last tagged release is 0.1.7 (April 2020), with a single compile fix pushed in October 2025. Fun to read and hack on; not something to bet a product on.

Is OlegDB open source?

Yes. OlegDB is open source. License: MIT License.

Does OlegDB support ACID transactions?

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

Does OlegDB scale horizontally?

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

You can self-host it and embed it in your application.

What is OlegDB best for?

OlegDB is a strong fit for learning how hash-table key-value stores work and toy or hobby services needing a REST KV store. Think twice for production data.

What are the best alternatives to OlegDB?

Common alternatives to OlegDB include Redis, Valkey, LMDB, bbolt and Ehcache. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is OlegDB still maintained?

OlegDB is in maintenance mode. No feature work since the 0.1.7 tag (April 2020); only an occasional build fix (October 2025).

How popular is OlegDB?

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