GithubHelp home page GithubHelp logo

Database RocksDB about cockroach HOT 3 CLOSED

cockroachdb avatar cockroachdb commented on May 13, 2024
Database RocksDB

from cockroach.

Comments (3)

andybons avatar andybons commented on May 13, 2024

Iā€™m a big fan of Bolt (and Ben, for that matter). However, do you have
reasons other than a less painful deploy to switch?

RocksDB is mature, fast, tunable, and used in very large scale production
environments.

Bolt is still in beta.

Iā€™m not familiar enough with kv to make an educated judgement of it. Is it
used heavily in production somewhere?

On Wed, Apr 23, 2014 at 5:42 AM, Jonas mg [email protected] wrote:

Instead of RocksDB, you could use a database built in Go (to a better
deploy):

  • Bolt is a pure Go key/value store inspired by the LMDB project. Bolt
    currently works on Mac OS and Linux. Windows support is coming soon.

https://github.com/boltdb/bolt

https://godoc.org/github.com/boltdb/bolt

  • Package kv implements a simple and easy to use persistent key/value
    (KV) store:

https://github.com/cznic/kv
http://godoc.org/github.com/cznic/kv

ā€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/14
.

from cockroach.

strangemonad avatar strangemonad commented on May 13, 2024

Hey @kless thanks for your feedback.

At some point, it might make sense to allow plugging in different KV stores as the durability backends. Think about how Riak allows you to use bitcask vs leveldb vs rocksdb. In the riak case, you end up choosing between them based on the the characteristics of your key-space (e.g. sparse vs dense). Anyway, random aside.

As for rocks db, the fact that it's key-value (and shares that in common with bolt) is somewhat superficial. We're going to make much more heavy use of the fact that

  • it's an LSM / SST store
  • it supports efficient range scans
  • it has a plug-able compactor (that scales well on multi-core machines).
  • fine-grained control over file system flushing.

To answer this question in another way, bolt is actually too high-level for our needs (if we're hoping to implement this in an efficient way). E.g. storing things in a b-tree, providing ACID and MVCC at this level would introduce too much overhead in our lowest level layer (raw storage).

hope this makes sense.

from cockroach.

tredoe avatar tredoe commented on May 13, 2024

@strangemonad yeah, it makes sense. Thanks for for leave it so clear.

from cockroach.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.