LevelDB

maintenance

by Google · since 2011

Google's original small, fast LSM key-value library, now in limited-maintenance mode.

key-valueembedded libraryopen source (permissive)legacy

maintenance. Google states the repo receives very limited maintenance (critical fixes only); last release 1.23 in Feb 2021. RocksDB is the usual successor.

Overview

LevelDB is the compact C++ library Jeff Dean and Sanjay Ghemawat released in 2011, bringing Bigtable's SSTable and LSM ideas to a single-process embeddable store. It provides an ordered map of byte-string keys to values with snapshots, atomic batches and Snappy compression, and it still sits inside Chrome's IndexedDB implementation and Bitcoin Core's chainstate. The repository is explicitly in very limited maintenance and the last tagged release was 1.23 in 2021. For new work, RocksDB, Pebble or a Rust engine offer more features and active development; LevelDB remains a readable reference implementation.

Strengths & trade-offs

Strengths

  • +Small, readable codebase that is easy to embed and audit
  • +Ordered keys with forward and backward iteration and snapshots
  • +Atomic write batches and Snappy compression
  • +Proven inside Chrome and Bitcoin Core

Trade-offs

  • −Very limited maintenance; no new features
  • −Single-threaded compaction limits write throughput
  • −No transactions beyond atomic batches, no column families
  • −Single process only; no concurrent multi-process access

Great for

  • +Simple local persistence in desktop or browser runtimes
  • +Learning LSM-tree internals
  • +Maintaining existing LevelDB-based software

Think twice for

  • −New high-throughput storage engines
  • −Multi-process access to one database
  • −Workloads needing transactions

Capabilities

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

✓Durable persistence
✓Compression
–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
–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
Limited ACID
Consistency
Strong
Schema
Schemaless
Architecture
Embedded
Query languages
C++ API

Deployment

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

Ecosystem

apis & protocolsC++ API, C API
client languagesC++, C
used byGoogle

Alternatives to LevelDB

Compare all→
RocksDBKey-Value48.2

Meta's embeddable LSM-tree key-value engine, the storage layer under dozens of databases.

leveldb vs rocksdb →
PebbleKey-Value5.6

Cockroach Labs' Go LSM engine, inspired by RocksDB and tuned for CockroachDB.

leveldb vs pebble →
LMDBKey-Value39.7

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

leveldb vs lmdb →
BadgerKey-Value10.7

Pure-Go LSM key-value store that separates keys from values to cut write amplification.

leveldb vs badger →
FjallKey-Value15.4

Log-structured, embeddable key-value engine in pure Rust with keyspaces and transactions.

leveldb vs fjall →
redbKey-Value13.8

Pure-Rust embedded key-value store: copy-on-write B-trees, ACID, and a stable file format.

leveldb vs redb →

LevelDB FAQ

What is LevelDB?

LevelDB is a key-value database by Google, first released in 2011. LevelDB is the compact C++ library Jeff Dean and Sanjay Ghemawat released in 2011, bringing Bigtable's SSTable and LSM ideas to a single-process embeddable store. It provides an ordered map of byte-string keys to values with snapshots, atomic batches and Snappy compression, and it still sits inside Chrome's IndexedDB implementation and Bitcoin Core's chainstate. The repository is explicitly in very limited maintenance and the last tagged release was 1.23 in 2021. For new work, RocksDB, Pebble or a Rust engine offer more features and active development; LevelDB remains a readable reference implementation.

Is LevelDB open source?

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

Does LevelDB support ACID transactions?

Partly. LevelDB offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong consistency.

Does LevelDB scale horizontally?

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

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

What is LevelDB best for?

LevelDB is a strong fit for simple local persistence in desktop or browser runtimes, learning LSM-tree internals and maintaining existing LevelDB-based software. Think twice for new high-throughput storage engines.

What are the best alternatives to LevelDB?

Common alternatives to LevelDB include RocksDB, Pebble, LMDB, Badger and Fjall. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is LevelDB still maintained?

LevelDB is in maintenance mode. Google states the repo receives very limited maintenance (critical fixes only); last release 1.23 in Feb 2021. RocksDB is the usual successor.

How popular is LevelDB?

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