Sophia

discontinued

by Dmitry Simonenko · since 2013 · also known as Sophia storage engine

Embeddable C key-value/row storage library with MVCC and serializable snapshot isolation; no longer developed.

key-valueembedded libraryopen source (permissive)legacy

discontinued. README states it is no longer developed; last release 2.2 (August 2016). Use RocksDB, LMDB or Fjall for embedded storage.

Overview

Sophia is a small, dependency-free C library by Dmitry Simonenko implementing a RAM-disk hybrid storage engine. It is append-only, uses MVCC with optimistic concurrency for many writers and readers, supports multi-statement transactions across several databases that share one write-ahead log, and offers serializable snapshot isolation, upsert, prefix search, key expiry, hot backup and lz4/zstd compression behind a minimal FFI-friendly API. The last release was 2.2 in August 2016, and the README now states the project is no longer developed, while pointing to the author's newer Amelia and Monotone engines that inherit its ideas. It is worth reading for storage-engine design, not for new deployments.

Strengths & trade-offs

Strengths

  • +Full ACID with serializable snapshot isolation in a tiny embeddable library
  • +Multi-statement transactions across several databases sharing one WAL
  • +Append-only design with multi-threaded compaction and lz4/zstd compression
  • +Amalgamated single-file build with an FFI-friendly C API

Trade-offs

  • −No longer developed; last release in 2016
  • −Few maintained language bindings
  • −Much smaller user base and test history than RocksDB or LMDB

Great for

  • +Studying modern storage engine design
  • +Legacy embedded projects that already depend on it

Think twice for

  • −New production systems that need maintained storage

Capabilities

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

✓Transactions
✓TTL / expiry
✓Durable persistence
✓Compression
–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
Full ACID
Consistency
Strong
Schema
Schemaless
Architecture
Embedded
Query languages
C API

Deployment

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

Ecosystem

client languagesC

Alternatives to Sophia

Compare all→
RocksDBKey-Value48.2

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

sophia vs rocksdb →
LMDBKey-Value39.7

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

sophia vs lmdb →
LevelDBKey-Value33.4

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

sophia vs leveldb →
PebbleKey-Value5.6

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

sophia vs pebble →
FjallKey-Value15.4

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

sophia vs fjall →
WiredTigerKey-Value20.6

MongoDB's default storage engine: MVCC B-tree with compression and snapshot isolation.

sophia vs wiredtiger →

Sophia FAQ

What is Sophia?

Sophia is a key-value database by Dmitry Simonenko, first released in 2013. Sophia is a small, dependency-free C library by Dmitry Simonenko implementing a RAM-disk hybrid storage engine. It is append-only, uses MVCC with optimistic concurrency for many writers and readers, supports multi-statement transactions across several databases that share one write-ahead log, and offers serializable snapshot isolation, upsert, prefix search, key expiry, hot backup and lz4/zstd compression behind a minimal FFI-friendly API. The last release was 2.2 in August 2016, and the README now states the project is no longer developed, while pointing to the author's newer Amelia and Monotone engines that inherit its ideas. It is worth reading for storage-engine design, not for new deployments.

Is Sophia open source?

Yes. Sophia is open source. License: BSD 2-Clause License.

Does Sophia support ACID transactions?

Yes. Sophia supports full ACID transactions, with strong consistency.

Does Sophia scale horizontally?

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

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

What is Sophia best for?

Sophia is a strong fit for studying modern storage engine design and legacy embedded projects that already depend on it. Think twice for new production systems that need maintained storage.

What are the best alternatives to Sophia?

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

Is Sophia still maintained?

Sophia is discontinued. README states it is no longer developed; last release 2.2 (August 2016). Use RocksDB, LMDB or Fjall for embedded storage.

How popular is Sophia?

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