I know Badger does not support buckets like BoltDB, but I’m trying to simulate two buckets in Badger.
Open two Badger DBs to simulate two buckets, however, transactions of two DBs (update both or neither) becomes a problem.
Open only one Badger DB, use key prefixes (like first byte set to 1 or 2) to differentiate the two buckets. Transactions should work well but I’m not sure if this model is sufficient to simulate two buckets.
Do you have a workaround for transactions of two Badger DBs? Which method would you recommend?