|
|
2 ماه پیش | |
|---|---|---|
| .. | ||
| CMakeLists.txt | 2 ماه پیش | |
| README.md | 2 ماه پیش | |
| bench_lmdb_storage.cpp | 2 ماه پیش | |
| lmdb_store.cpp | 2 ماه پیش | |
| lmdb_store.hpp | 2 ماه پیش | |
Throwaway prototype that backs document storage with LMDB. The goal is to answer the questions the Phase C plan poses for the build-vs-buy spike:
to_json_text from service/src/doc_binary.cpp as
the on-disk encoding (yyjson-write of a mut_doc). Reading goes
through the existing Phase A bridge (parse_to_nlohmann) plus the
Phase B encode to reconstruct the Doc. Real Phase C work would
drop the round-trip through nlohmann and serialise yyjson_doc bytes
directly, but that's beyond the spike.Standalone from the main build; nothing in this directory is part of
the production smartbotic-database binary. Configure into a sibling
build/ directory:
cd /data/smartbotic-database/service/spike/v2_lmdb
cmake -B build -G Ninja
cmake --build build
./build/bench_lmdb_storage --docs 100000 --map-mb 4096