Avoid lexicographic ordering in badger DB

75 Views Asked by At

By default values in the badger database are stored lexicographically, is there a way to avoid this behavior and store them in a normal orderly fashion (FIFO) ?

1

There are 1 best solutions below

0
On

No

prefix the key with an increasing ID to get them in fifo order

You can use something https://github.com/artiship/rocks-queue-java like this and model it in badger db