Hey, badger users (and maintainers):
I’m consider using badger for store key with multiple versions of values. It seems there are at least 2 approaches for this:
make composite key of (key, version), maybe using “Uint64Max - version” for version to order inverse-chronological order. I can use the out-of-box badger DB, and badger will have no knowledge of my versions.
use ManagedDB, which seems to allow users to directly specify version, and this will (hopefully) seamlessly with badger’s inner wiring.
I prefer (2), however, just want to get feedback:
- is this the right understanding?
- is there anything I need to pay special attention to?