We’re trying to use Badger as a storage solution for billions of map tiles (10–100 KB PNG files). I believe the VLOG approach offers significant advantages for this use case. However, the default configuration stores these tiles in SSTs due to the 1 MB ValueThreshold
.
Initially, we were unsure what ValueThreshold
value to use, so we set it to 0
, meaning no values should be stored in SSTs. After making this change, no SST files were generated, and Badger started losing data after restarts. When I adjusted the ValueThreshold
to 64
, everything returned to normal.
Is this behavior expected? What is the minimum ValueThreshold
required to prevent data loss after restarts?