Badger Transactions of two Buckets

Using key prefixes should work. That’s what we do when encoding different ‘buckets’ in Dgraph. The only trick to be careful of is to make all of the key prefixes a fixed size (e.g. 1 byte, or 2 bytes etc), so that it’s easy to tell which part of the key is the bucket identifier and which part of the key is the remainder.

1 Like