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

Supported database backends #38

Closed
tac0turtle opened this issue Jan 9, 2020 · 9 comments
Closed

Supported database backends #38

tac0turtle opened this issue Jan 9, 2020 · 9 comments
Labels

Comments

@tac0turtle
Copy link
Contributor

tac0turtle commented Jan 9, 2020

Would like to have a discussion on which dbs we should support in this repo.

  • which DB's are used?

  • Which should we deprecate?

@melekes
Copy link
Contributor

melekes commented Jan 9, 2020

rocksdb (fast kv store), boltdb (b+tree - useful for indexing), memdb (useful for testing) are my top picks.

we should probably add badger

not a fan of leveldb

Which should we not maintain anymore?

fsdb?

@tessr
Copy link
Contributor

tessr commented Jan 9, 2020

we should probably add badger

what motivates this? I'd generally like to see requests from users (or prospective users) before adding another database

@melekes
Copy link
Contributor

melekes commented Jan 9, 2020

I'd generally like to see requests from users (or prospective users) before adding another database

I somewhat disagree. From validators (average users) point of view, they usually want stable performant DB with adequate storage requirements. Same for developers building on top of Tendermint, with the exception that they have time / desire sometimes to investigate which DB is the best. In my mind it's not the matter of adding or removing, but providing best possible option for our users.

we should probably add badger
what motivates this?

tendermint/tendermint#1835 (comment)
either badger or bbolt should be the default, not goleveldb in my opinion.

@tac0turtle
Copy link
Contributor Author

tac0turtle commented Jan 10, 2020

I somewhat disagree. From validators (average users) point of view, they usually want stable performant DB with adequate storage requirements. Same for developers building on top of Tendermint, with the exception that they have time / desire sometimes to investigate which DB is the best. In my mind it's not the matter of adding or removing, but providing best possible option for our users.

I do agree with this, and I am actually in favor of adding badgerdb, but would like to go through some testing and add more testing to this repo before we add more things.

Also, another concern of mine that I found in working on the error handling is that the tests are not run on all the dbs, I will spend time seeing what is leading to this, but would like to see what I can get rid of first so I don't spend time on them.

@tessr
Copy link
Contributor

tessr commented Jan 13, 2020

In my mind it's not the matter of adding or removing, but providing best possible option for our users.

I can agree with this--but I'd like us to make sure we have a manageable maintenance load!

@erikgrinaker erikgrinaker changed the title DB repo maintenance cleanup Supported database backends May 19, 2020
@mvdan
Copy link
Contributor

mvdan commented Jun 29, 2020

@melekes are you still interested in adding support for badger/v2? Is https://gist.github.com/melekes/85b8c07dd917828dc2ac6696129b73f2 your latest attempt, or has someone else continued the work since?

I'd like to use badger with the iavl library, so I could work on a pull request here if it would be welcome.

@tac0turtle
Copy link
Contributor Author

@melekes are you still interested in adding support for badger/v2? Is gist.github.com/melekes/85b8c07dd917828dc2ac6696129b73f2 your latest attempt, or has someone else continued the work since?

I'd like to use badger with the iavl library, so I could work on a pull request here if it would be welcome.

Hey we discussed this in our team call and would welcome a pr with badger. No one has looked into adding it other than that attempt by anton.

@mvdan
Copy link
Contributor

mvdan commented Jun 29, 2020

Sounds good, thanks!

@mvdan
Copy link
Contributor

mvdan commented Jun 29, 2020

I've also filed #113, which I think should be fixed first. Otherwise depending on tm-db in any way is going to become far heavier, since badger/v2 itself is pretty heavy (note that it imports https://github.com/DataDog/zstd, which takes a good 20-30s to build on my machine due to all the C code).

@github-actions github-actions bot added the Stale label Aug 5, 2021
@github-actions github-actions bot closed this as completed Aug 9, 2021
faddat pushed a commit to faddat/tm-db that referenced this issue Feb 21, 2024
…rmint#38)

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.52.3 to 1.53.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.52.3...v1.53.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants