All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Introduction to cdb: Fast Constant Database Package

By

kreco

7mo ago· 3 min readen

Summary

The article introduces cdb, a fast and reliable package for creating and reading constant databases. It highlights key features including fast lookups (2 disk accesses for successful lookups, 1 for unsuccessful), low overhead (2048 bytes base plus 24 bytes per record), and no arbitrary size limits (handles databases up to 4GB for standard version, exabyte for cdb64). The database structure is designed for efficiency and reliability in data storage and retrieval.

Key quotes

· 3 pulled
A successful lookup in a large database normally takes just two disk accesses. An unsuccessful lookup takes only one.
A database uses 2048 bytes (or 4096 bytes for cdb64), plus 24 bytes per record (or 48 bytes per record for cdb64), plus the space for keys and data.
cdb handles any database up to 4 gigabytes (or up to an exabyte for cdb64). There are no other restrictions.
Snippet from the RSS feed
cdb: Intro

You might also wanna read