What are my options for storing parent-child relations in badger? Basically I would like to store parent as key and children as a list of values.
There is a merge operator that can be used to create lists, but as I understand it’s quite expensive performance-wise because Badger creates a goroutine for each merge operator.
Another option is to append parent to child and save that as key with no value. Then it’s possible to iterate by parent prefix.
What is the best approach?