rosedblabs / rosedb

Lightweight, fast and reliable key/value storage engine based on Bitcask.

Home Page:https://rosedblabs.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proposal: keep key and value into memory

0x5487 opened this issue · comments

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
}

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

No, not yet. we are still investigating.

No, not yet. we are still investigating.

Hello, are you still investigating?