FastDB
discontinuedby 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.
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
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
Ecosystem
Alternatives to FastDB
Knizhnik's embedded object-relational DBMS for C++ with a page pool, SubSQL and R-tree indexes.
fastdb vs gigabase →The in-process SQL engine that ships in every phone, browser and OS: one file, zero servers.
fastdb vs sqlite →Tiny memory-mapped B+tree with ACID transactions and lock-free readers; reached 1.0 in 2026.
fastdb vs lmdb →Embedded in-memory and hybrid database for devices, real-time systems and time-series analytics.
fastdb vs extremedb →Oracle's in-memory relational database: microsecond SQL, PL/SQL, and a cache tier for Oracle Database.
fastdb vs oracle-timesten →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.
