Pigeonhole 1.3.2 publishes its single-file wide-column Rust database
The library combines rows, column families, and timestamped values in an embedded storage model.
Release record and workload
Pigeonhole 1.3.2 was recorded on crates.io on November 29 at 14:59:44 UTC. Docs.rs separately shows a documentation build for that release. The library embeds a wide-column database in an application without a standalone database server. Its documentation describes row keys, column families, sparse qualifiers, timestamped versions, and range scans. That model can be useful when records evolve over time and different rows carry different fields.
Key order changes scan patterns
A field recorder may produce temperature and humidity for one device and only temperature for another. Keys beginning with a device ID support scans for a single device. Keys beginning with a day favor a different scan. Test the layout against the application’s actual queries. A fixture can include a missing measurement, two versions of one value, and a device identifier that exposes sorting assumptions.
Close and reopen as separate observations
The documentation describes disk-backed operation, write-ahead logging, and flushing in-memory tables. It says a clean close leaves one file. Intermediate states may have different requirements. Before copying an active database, verify the documented backup contract. For a smoke test, commit known versions, close the database, reopen it, and read the data back. Broader crash-recovery behavior calls for separate testing on a disposable copy.
Time is part of the data model
A station can store readings for 09:00 and 09:10 under the same key. Seeing the newest value and retrieving both versions are different queries. The package describes timestamped versions and expiration. Specify which older values remain visible and for how long. The documented format-4 compatibility promise for the 1.x line is separate from those query and retention choices.
What an upgrade test should cover
Range scanning, reopening a file, and reading two versions are three separate checks. Hold the Rust version and package features fixed. Compare first and last keys and missing qualifiers as well as row counts. The Docs.rs build shows that documentation compiled for the release. An application upgrade still needs evidence from a reopen and readback using representative data.
Correctness and timing need different fixtures
A small file makes outcomes reviewable. A larger run can expose the influence of cache state, memory budgets, and disk latency. State whether the fixture verifies the order of values or measures how long the workload takes. A second scan can benefit from the operating system’s cache, so record how the timing was collected. Include a control with the same qualifiers written at two times. Verify the chosen projection before closing and again after reopening. A scan that returns the right number of rows can still return an old version or silently omit a field. Record the projected columns and the exact boundary keys.
Archive photo · Mk2010 / Wikimedia Commons ↗ · CC BY 4.0
Sources and verification
- Primary sourcecrates.io sürüm kaydı ↗
- Technical documentDocs.rs paket belgeleri ↗
- Reporting / cross-checkDocs.rs bağımsız derleme kaydı ↗
Reader discussion
Which bottleneck would you expect as this solution scales?
No comments yet. Be the first to contribute.
Write a comment