Pogreb
maintenanceby Artem Krylysov · since 2018
Embedded Go key-value store tuned for read-heavy workloads, using linear hashing and an mmap'd index.
maintenance. No tagged release since v0.10.2 (Dec 2023); only small portability fixes since.
Overview
Pogreb is an embedded key-value store written in pure Go by Artem Krylysov and aimed at read-heavy workloads such as large lookup tables that are bulk-loaded and then queried at high rates. Keys are found through an on-disk linear-hashing index with 32-bit MurmurHash, so a random lookup usually costs one or two disk reads and memory use stays low even for larger-than-memory datasets; values live in append-only segment files that are compacted in the background, and a recovery routine rebuilds state after crashes. All methods are safe for concurrent goroutines, with many readers and one writer. The last tagged release is v0.10.2 (December 2023), and the author still commits small portability fixes such as Plan 9 support in 2025–2026.
Strengths & trade-offs
Strengths
- +Fast random point lookups with one or two disk reads
- +Low memory footprint even for larger-than-RAM datasets
- +Pure Go with no cgo, safe for concurrent goroutines
Trade-offs
- −No range scans or ordered iteration by key
- −Single writer and no multi-key transactions
- −Small project with infrequent releases
Great for
- +Read-mostly lookup tables embedded in Go services
- +Bulk-loaded caches of precomputed data
- +Replacing BoltDB where range scans are not needed
Think twice for
- −Write-heavy workloads
- −Range queries or sorted iteration
Capabilities
Native or official first-party support · 1 of 25 tracked
Scale & consistency
- Comfortable data size
- Small · ≤ 100 GB
- Horizontal scaling
- None
- Multi-region
- No
- Transactions
- Limited ACID
- Consistency
- Strong
- Schema
- Schemaless
- Architecture
- Embedded
- Query languages
- Key-value API
Handles larger-than-memory datasets on one machine; single writer.
Deployment
Ecosystem
Alternatives to Pogreb
etcd's maintained fork of BoltDB: a simple, pure-Go B+tree store in a single file.
pogreb vs bbolt →Pure-Go LSM key-value store that separates keys from values to cut write amplification.
pogreb vs badger →Cockroach Labs' Go LSM engine, inspired by RocksDB and tuned for CockroachDB.
pogreb vs pebble →Tiny memory-mapped B+tree with ACID transactions and lock-free readers; reached 1.0 in 2026.
pogreb vs lmdb →The standard embedded JVM cache, with heap, off-heap and disk tiers and optional Terracotta clustering.
pogreb vs ehcache →Heavily reworked LMDB descendant: memory-mapped ACID B+tree with auto-growing files.
pogreb vs libmdbx →Pogreb FAQ
What is Pogreb?
Pogreb is a key-value database by Artem Krylysov, first released in 2018. Pogreb is an embedded key-value store written in pure Go by Artem Krylysov and aimed at read-heavy workloads such as large lookup tables that are bulk-loaded and then queried at high rates. Keys are found through an on-disk linear-hashing index with 32-bit MurmurHash, so a random lookup usually costs one or two disk reads and memory use stays low even for larger-than-memory datasets; values live in append-only segment files that are compacted in the background, and a recovery routine rebuilds state after crashes. All methods are safe for concurrent goroutines, with many readers and one writer. The last tagged release is v0.10.2 (December 2023), and the author still commits small portability fixes such as Plan 9 support in 2025–2026.
Is Pogreb open source?
Yes. Pogreb is open source. License: Apache License 2.0.
Does Pogreb support ACID transactions?
Partly. Pogreb offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong consistency.
Does Pogreb scale horizontally?
Pogreb 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 Pogreb?
You can self-host it and embed it in your application.
What is Pogreb best for?
Pogreb is a strong fit for read-mostly lookup tables embedded in Go services, bulk-loaded caches of precomputed data and replacing BoltDB where range scans are not needed. Think twice for write-heavy workloads.
What are the best alternatives to Pogreb?
Common alternatives to Pogreb include bbolt, Badger, Pebble, LMDB and Ehcache. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
Is Pogreb still maintained?
Pogreb is in maintenance mode. No tagged release since v0.10.2 (Dec 2023); only small portability fixes since.
How popular is Pogreb?
Pogreb ranks #475 of 844 databases on the WhichDB Score (2.5/100), and #75 among key-value databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.


