rosedblabs / rosedb

Lightweight, fast and reliable key/value storage engine based on Bitcask.
https://rosedblabs.github.io
Apache License 2.0
4.48k stars 620 forks source link

Proposal: keep key and value into memory #288

Closed 0x5487 closed 5 months ago

0x5487 commented 9 months ago

Scenario: When building a low-latency service, people would like to keep all key and values in memory. This way will reduce one disk IO to fetch value.

Proposal: we can create a new option. For example, the Mode field has two options.

  1. KeyOnly
  2. KeyAndValue
// Options specifies the options for opening a database.
type Options struct {
    Mode: KeyAndValue
}
roseduan commented 9 months ago

Thanks, are you already using rosedb in production? I can add this feature in the next release.

0x5487 commented 9 months ago

No, not yet. we are still investigating.

roseduan commented 6 months ago

No, not yet. we are still investigating.

Hello, are you still investigating?