Questions tagged [badgerdb]

9 questions
6
votes
1 answer

Performance issue in Golang's key-value store (Badger DB)

In badgerDB, we have billions of keys of type string and values of type HashValueList. In our use case length of HashValueList might be in millions. We have to encode key and value in []byte before inserting into BadgerDb; we are using the…
Vishal Jangid
  • 358
  • 1
  • 10
3
votes
1 answer

Is it safe to use embedded database (RocksDB, BoltDB, BadgerDB) on DigitalOcean block storage?

DigitalOcean block storage uses ceph which means that volume attached to the droplet would be physically located on a different machine. So a database file written to this volume would be using network, not the local disk. BoltDB specifically…
yname
  • 2,189
  • 13
  • 23
2
votes
1 answer

Acess Badger values in FIFO

I am using a badger database and I want to retireve my values in the FIFO order. Right now they seem to be stored alphabetically, Can I tweak some defaultOptions to make sure I get them in FIFO fashion?
Vinayak Anil
  • 51
  • 1
  • 3
1
vote
0 answers

How do I create a key-value pair and write it to my badgerDB?

Since the new version of BadgerDB, many of the old tutorials I've been looking at don't work. So I'm following the documentation, specifically with key loaders: https://godoc.org/github.com/dgraph-io/badger#KVLoader I've tried making a simple…
Luke Zhang
  • 343
  • 1
  • 4
  • 14
1
vote
0 answers

Getting EOF while reading data using cap'n'proto

Steps: func viewAll(db *badger.DB) { txn := db.NewTransaction(false) defer txn.Discard() iterOpts := badger.IteratorOptions{false, 0, false, true} itr := txn.NewIterator(iterOpts) defer itr.Close() b :=…
Vadim Filin
  • 342
  • 3
  • 12
0
votes
1 answer

Reading my own writes in the same (yet uncommitted) transaction

Is it possible to read my own writes within the same transaction, if that transaction has not yet been committed?
Han
  • 1,283
  • 11
  • 25
0
votes
1 answer

Avoid lexicographic ordering in badger DB

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) ?
Vinayak Anil
  • 51
  • 1
  • 3
0
votes
1 answer

Manifest has unsupported version: (we support )

I am seeing "Manifest has unsupported version: 4 (we support 7 )" on logs after updating my dgraph installation. What should I do? thanks.
Ezequiel Moreno
  • 2,228
  • 22
  • 27
-1
votes
1 answer

Understanding the Open Policy Agent (OPA) Disk-Storage implementation's use of .sst and .vlog files (BadgerDB)

I'm working through some OPA examples like this one that leverage disk storage. I've removed the temporary directory in favor of a permanent one (like we'd have in a production system) and I'm noticing some strange behavior. If I first write the…
muZero
  • 948
  • 9
  • 22