Questions tagged [boltdb]

Bolt is a pure Go key/value store inspired by Howard Chu's and the LMDB project. The goal of the project is to provide a simple, fast, and reliable database for projects that don't require a full database server such as Postgres or MySQL.

Bolt is a pure Go key/value store inspired by Howard Chu's and the LMDB project. The goal of the project is to provide a simple, fast, and reliable database for projects that don't require a full database server such as Postgres or MySQL. View more at https://github.com/boltdb/bolt.

41 questions
1
vote
1 answer

Go boltDB query using bolthold

I am trying to create a query for boltDB using Go. I have to have a query that checks for the roles and the tenantID. Basically the item has to always contain the role, also if the item has a tenantID it has to match however if the item does not…
Marius
  • 537
  • 1
  • 6
  • 23
1
vote
1 answer

Is it safe to use mmap with fsync? (will fsync invalidate some page on mmap?)

For example, I use mmap to map a file into the memory as read-only shared mode. And I read some data on the file based on their address in the memory. What if I call write and fsync to update or changes the underlying file after then? Will the data…
chenyuandong
  • 286
  • 1
  • 9
1
vote
1 answer

How to update an entry in boltdb using python3.6

I want to update boltdb entry using python. What is the python module available for it? I can see different drivers for boltdb like, neobolt, bolt-python. I did not get proper document about it. I want code sample for update operation.
Vignesh G
  • 27
  • 1
  • 4
1
vote
0 answers

BoltDB: periodically flush to disk

I'm writing an application that requires me to store a very large map with key-value pairs. So relying solely on a Golang map in memory will not cut it. BoltDB looks like it might be the right thing for this scenario. My application will…
Roper
  • 903
  • 1
  • 9
  • 17
1
vote
1 answer

How to use the same shared disk/filesystem with boltdb?

I need to share a boltdb database amongt 2 processes (on 2 different linux hosts). One will be alive, the other will be a cold standby that is woken up by pacemaker when the first one is detected as dead. But problem I'm seeing is that when the cold…
Kum
  • 61
  • 1
  • 8
1
vote
3 answers

Can I have nested bucket under a nested bucket in boltdb?

This is what I have to create nested buckets. It does not return any error but fails at creating nested bucket under another nested bucket. func CreateNestedBuckets(buckets []string) error { err := db.Update(func(tx *bolt.Tx) error { var bkt…
typing...
  • 934
  • 2
  • 10
  • 25
1
vote
2 answers

using two separate keys in BoltDB

I have a User struct with ID and LoginName fields and I want this struct to be accessible by either of these fields with single call to the DB. I know BoltDB is not supposed to handle arbitrary field indexing etc. (unlike SQL) but this case is a…
skariel
  • 108
  • 6
1
vote
1 answer

Cayley with BoltDB backend?

I am new to Go and I am trying to setup a simple graph database using Cayley with BoltDB as the backend datastore. Right now I am trying to run cayley from the command line. Running this command: cayley http --db="bolt" Generates this error: panic:…
Stratus3D
  • 4,648
  • 4
  • 35
  • 67
0
votes
1 answer

Is it possible to retrieve creation date & time of a key-value pair in etcd?

I would like to know if the etcd database stores the date and time of when a key-value pair were created. Additionally, I would also like to know if etcd stores such information about previous versions of a key-value pair as well. I went through the…
0
votes
0 answers

Corruption of Portainer's DB

I have a deployment of Portainer 2.14.2 and Docker Engine 20.10.7. It has been functional for quite a few months. Today I had some problems as the Portainer container (the one that is in charge of the UI, not the agent) was restarting. In one of…
Pablo Ochoa
  • 77
  • 1
  • 12
0
votes
1 answer

Golang BoltDB Delete Key Seemingly Not Working

CentOS 7, Github boltdb/bolt version 1.3.1, go version go1.17.7 linux/amd64 This issue may go to a misunderstanding of how BoltDB works, or maybe I have a bug, or maybe there is an issue. I've used BoltDB before, and have had very good results.…
Keith Hogan
  • 117
  • 1
  • 9
0
votes
1 answer

boltdb update freezes on commit

I want to extract data from an API and save it to a boltDB database. The problem is that the process is frozen on the commit() call and sends no panic or error... Anyone seeing something with the code below ? I put a maximum of 1500 candles at once…
16ar
  • 97
  • 1
  • 10
0
votes
2 answers

value for a key in a map is being changed automatically in golang

So I have this var resolve of type map[string][]byte that is being initialised by calling a method. If I just iterate resolve the value is being printed correctly. for k, v := range resolve { fmt.Printf("%s\t%s\n", k, v) } But in the very…
viveksinghggits
  • 661
  • 14
  • 35
0
votes
1 answer

How to detect the goroutine that occupies the lock?

I made a HTTP server with Echo and store data use storm and data model like this: project1(bucket)  device_type_1(bucket)   device_1(kv)   device_2(kv)  device_type_2(bucket)   device_1(kv)   device_2(kv) project2(bucket)  ... In addition to…
navono
  • 152
  • 1
  • 8
0
votes
0 answers

can't load package: C:\Go\src\"application"\db.go:10:2: non-standard import "github.com/boltdb/bolt" in standard package "application"

I'm new to coding so I'm sure my mistake is something simple. I'm trying to install an application from github.com/benbjohnson/roommate. I have installed go and am able to get the file. go get github.com/boltdb/bolt/... However, when I try to…