Ben Johnson

Results 193 comments of Ben Johnson

Can you give me some more details about your OS & application?

@k0mrade re: indexes, I typically use a separate bucket to store the index. For example, if you have a bucket of `Widgets` then you could make a separate `Widgets.Name` bucket...

@xiang90 Are you retaining and altering the `[]byte` that you pass as a `key` or `value` to `Bucket.Put()`?

@xiang90 Do you have an example program that writes the data?

@josharian Thanks for digging in. What size keys & values are you using in the bolt database?

@tv42 I like the idea of implementing more complex indexing but I think that would become a fork of Bolt. Bolt is at a point of stability where I'd rather...

Yeah, that's definitely a possibility. `mmap()` can help for databases that are smaller than memory but it can have performance issues as Go will stall if the page needs to...

I'm adding some fixes to prevent this: 1. Add a "node ID" that's persisted to the data directory so that a node can identify itself. It'll pass this along to...

A new primary should automatically be promoted once the key expires in Consul and the lock delay passes. We can't force a primary change in order to prevent split brain....

I added the node ID here: https://github.com/superfly/litefs/pull/79