mirror of
https://github.com/luxfi/zapdb.git
synced 2026-10-30 15:12:20 +00:00
This PR - Uses flatbuffers instead of protobufs for table index and directly stores byte slices in the cache. - Uses MaxVersion to pick the oldest tables for compaction first. - Uses leveldb/bloom so that we can test it without unmarshal - Adds uncompressed size and key count in table index. - Updates write bench tool to use managed mode.
13 lines
287 B
Bash
Executable File
13 lines
287 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
## Install flatc if not present
|
|
## ref. https://google.github.io/flatbuffers/flatbuffers_guide_building.html
|
|
command -v flatc > /dev/null || { ./install_flatbuffers.sh ; }
|
|
|
|
flatc --go flatbuffer.fbs
|
|
# Move files to the correct directory.
|
|
mv fb/* ./
|
|
rmdir fb
|