-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RocksDB #1063
RocksDB #1063
Conversation
@eryeer Could you move your LevelDB unit tests to this PR? (modified for RocksDB) |
@shargon, I think that the discussion #966 was not yet decided, please check my comments there. In the last comment of @erikzhang he mentioned that it was not yet decided when you asked. In this sense, I think that this PR could wait a little more. The DB could be even more flexible, this would really be a good change. I think that a change like this would be more plausible with a dedicated benchmark when we have defined a strategy for testing the Blockchain and throughput. I am not in favor of this change right now. However, if you really think it is better in terms of performance and the needs, I think that you should push this forward, because you are more expert in this topic than me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shargon, with the possibility of switching between them (and perhaps, for now, leaving LevelDB as default) I am 100% in favor of this.
In addition, it is was surely not an easy task to you and since you already dedicated time to learn and push this, I believe that it should be merged.
@shargon Ok, after it merged, let's test them together. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful job @shargon!
Congratulations. Flexible and powerful.
This surely opens a wide path of possibilities.
Maybe we can move this to a plugin. Because I anticipate that we may have many different storages in the future, such as LevelDb, RocksDb, FASTER, and memory. If each one is integrated in the core, it is not necessary. |
I agree, Erik. We could merge @shargon refactor at least, yes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The plugin sounds a good idea that @erikzhang suggested and even more flexible, promoting a compact code.
Maybe we can keep the refactoring of level leveldb.
@shargon, it is a great job and this was the most import step. Congratulations once more.
Thinking on Rocks, Level, Faster and Memory makes us more prone to consider as a plugin.
dismissing because of possibility for changing to plugins. However, PR had my previous approval.
After #1087 i will reduce this PR for preserve only the refactored part, and move th rest to neo-plugins |
I will close this when |
Please review #1249 first. |
LevelDb changes moved to #1308 |
Close #966
Default values taken from: https://github.com/facebook/rocksdb/blob/189f0c27aaecdf17ae7fc1f826a423a28b77984f/utilities/leveldb_options/leveldb_options.cc
Descriptions taken from: https://github.com/influxdata/rocksdb/blob/7adff3eb33001c471c48cdcadf1b55462920b123/options.go
TODO: