Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

At my startup, we have created a geth fork that uses Postgresql instead of leveldb. It took quite some effort...but we are running a full node right now. I think we are going to put in more effort there - we already implemented soft deletes,etc. Smarter people than me can probably build a better data model for the merkle trees leveraging postgres.

It's 2x slower than leveldb (if that matters to you), but given how slow a blockchain really is ...it is plenty fast enough.

https://github.com/RedCarpetUp/go-ethereum/tree/dev?files=1

I believe that it is time for developers to start thinking of single node scalability and infrastructure that is maintainable..rather than convenience.



Can you give me your reasoning to port the db to Postgresql? Thanks.



Thanks. Blends in with our opinion.


Umm..so you agree or disagree ?

Please feel free to comment on our code and point out some obvious flaws. We would love to learn.


I'm affiliated with a cryptocurrency which is using Postgres as its underlying database since the beginning. So I agree with your sentiment.

Single node scalability is often overseen, but in my opinion has to come first, before you can expand scalability network wide. It's like standard computer science practices are not being applied in the crypto world, yet.


That looks pretty cool. Any plans to submit a PR upstream?


Yup. Im a little intimidated by sending it right now - I'm not a crypto "expert". So I'm looking for some informal review and then probably submit it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: