Daniel J. Bernstein updated cdb (Constant database) to go beyond 4GB
15 hours ago
- #cdb
- #database
- #performance
- cdb is a fast, reliable, simple package for creating and reading constant databases.
- Features include fast lookups (two disk accesses for successful lookups, one for unsuccessful), low overhead (2048 bytes for cdb, 4096 for cdb64), and no random limits (handles databases up to 4GB for cdb, exabyte for cdb64).
- Fast atomic database replacement with cdbmake allows quick rewrites without pausing readers.
- Fast database dumps with cdbdump print database contents in cdbmake-compatible format.
- Latest release is 20251021.
- Multiple packages and implementations support cdb and cdb64 formats across various programming languages.
- Applications using cdb format include djbdns, Exim, Postfix, qmail, and others.
- Comparative benchmarks available from years 2002 to 2016.
- Spotify's sparkey is a spinoff allowing databases beyond 4GB.