FastDB

discontinued

by Konstantin Knizhnik · since 1999 · also known as Fast DB, FastDB Embedded ORDBMS

Knizhnik's main-memory object-relational database for C++, mapping the whole database into process memory.

relationalobjectembedded libraryopen source (permissive)legacy

discontinued. Last release 3.76 (May 2014); the author has since moved on to PostgreSQL work. Consider SQLite, LMDB or eXtremeDB for embedded in-memory use.

Overview

FastDB is an embedded main-memory object-relational database by Konstantin Knizhnik, first released in January 1999. It maps the entire database file into the application's address space with the OS virtual-memory system, so records are read in place with no buffer manager or copying, and tables are declared directly from C++ classes. It provides an SQL-like query language with object extensions (references, arrays, inverse references), T-tree, hash and R-tree indexes, transactions committed through a shadow-page scheme with no write-ahead log, near-instant recovery, online backup and replication for fault tolerance, plus C, C++, Delphi/Kylix and PHP interfaces. It is fast for datasets that fit in RAM; GigaBASE was its disk-based sibling. The last version, 3.76, came out in May 2014.

Strengths & trade-offs

Strengths

  • +Zero-copy reads: data is accessed directly in memory-mapped pages
  • +Log-less shadow-page commits with near-instant crash recovery
  • +C++ classes double as table definitions, with automatic schema evolution
  • +R-tree, T-tree and hash indexes in a tiny embeddable library

Trade-offs

  • −Database size limited by RAM and address space
  • −No release since 2014; old build systems and compilers
  • −Single-machine embedded use; no standard SQL or network protocol

Great for

  • +Low-latency embedded data in C++ applications (telecom, real-time systems)
  • +Studying memory-mapped, log-less database design

Think twice for

  • −Datasets larger than RAM
  • −Client/server or multi-language access
  • −New projects needing maintenance

Capabilities

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

✓Transactions
✓Joins
✓Secondary indexes
✓Geospatial
✓In-memory
✓Durable persistence
✓Online schema changes
–Full-text search
–Vector search
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–Compression
–Encryption at rest
–Role-based access
–Time travel
–Branching
–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
Strict
Architecture
Embedded, In memory, Client server
Query languages
SQL-like query language with object extensions

Whole database must fit in the process address space and RAM; replication provides hot standby, not scale-out.

Deployment

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

Ecosystem

apis & protocolsC++ API, C CLI (local and remote), Java native interface, Delphi/Kylix, PHP
client languagesC, C++, Java, Delphi, PHP

Alternatives to FastDB

Compare all→
GigaBASERelational0.0

Knizhnik's embedded object-relational DBMS for C++ with a page pool, SubSQL and R-tree indexes.

fastdb vs gigabase →
SQLiteRelational75.5

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

fastdb vs sqlite →
LMDBKey-Value39.7

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

fastdb vs lmdb →
eXtremeDBKey-Value4.0

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

fastdb vs extremedb →
Oracle TimesTenRelational9.5

Oracle's in-memory relational database: microsecond SQL, PL/SQL, and a cache tier for Oracle Database.

fastdb vs oracle-timesten →
4DRelational12.8

French integrated database and app-development platform for desktop, client/server and web apps.

fastdb vs 4d →

FastDB FAQ

What is FastDB?

FastDB is a relational database by Konstantin Knizhnik, first released in 1999. FastDB is an embedded main-memory object-relational database by Konstantin Knizhnik, first released in January 1999. It maps the entire database file into the application's address space with the OS virtual-memory system, so records are read in place with no buffer manager or copying, and tables are declared directly from C++ classes. It provides an SQL-like query language with object extensions (references, arrays, inverse references), T-tree, hash and R-tree indexes, transactions committed through a shadow-page scheme with no write-ahead log, near-instant recovery, online backup and replication for fault tolerance, plus C, C++, Delphi/Kylix and PHP interfaces. It is fast for datasets that fit in RAM; GigaBASE was its disk-based sibling. The last version, 3.76, came out in May 2014.

Is FastDB open source?

Yes. FastDB is open source. License: MIT-style licence (SourceForge lists Apache).

Does FastDB support ACID transactions?

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

Does FastDB scale horizontally?

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

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

What is FastDB best for?

FastDB is a strong fit for low-latency embedded data in C++ applications (telecom, real-time systems); and studying memory-mapped, log-less database design. Think twice for datasets larger than RAM.

What are the best alternatives to FastDB?

Common alternatives to FastDB include GigaBASE, SQLite, LMDB, eXtremeDB and Oracle TimesTen. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is FastDB still maintained?

FastDB is discontinued. Last release 3.76 (May 2014); the author has since moved on to PostgreSQL work. Consider SQLite, LMDB or eXtremeDB for embedded in-memory use.

How popular is FastDB?

FastDB has little measurable public adoption today, so it ranks near the bottom of the WhichDB Score.