Skip to content
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

Implement key value store for persistence. #3

Open
fritzhealy opened this issue Oct 20, 2017 · 1 comment
Open

Implement key value store for persistence. #3

fritzhealy opened this issue Oct 20, 2017 · 1 comment
Assignees

Comments

@fritzhealy
Copy link
Member

I was looking into leveldb as an embedded db, wanted to know peoples though on storing stringified json blocks as value and block num AS key. This would give fast write speed, moderate lookup with variable length block size. Also thought about TokyoCabinet which reportedly has fast lookup and fast sequential writes.

@jcopley
Copy link

jcopley commented Oct 20, 2017

I was thinking of just using shelve or something to begin with; as long as blockchains are kept in memory for a running node, they need only be written when a block is created and read when a node is initialized.

But I would also suggest that the storage medium would be irrelevant to the protocol itself; maybe use an abstraction layer to save and fetch chains (also node lists and uncommitted xactions), then use a Config file or something to allow nodes to use their own specific data store.

@fritzhealy fritzhealy self-assigned this Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants