0

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) ?

blackgreen
  • 34,072
  • 23
  • 111
  • 129
Vinayak Anil
  • 51
  • 1
  • 3

1 Answers1

0

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

Asad Awadia
  • 1,417
  • 2
  • 9
  • 15