You are viewing a single comment's thread from:

RE: [COMPLETE] Maintenance of chainBB - indexes missing

in #chainbb8 years ago (edited)

I understand the problem and I think keeping the indexes in a database was a good choice. There are ways to implement it over blockchain with a nodeJS app as a middleware to provide a different API using steem-js but it also involve some hacks and caching which is not necessarily easier.

However, since you are looking for a better database solution I recommend you to take a look at Gundb as it could provide a decentralized solution with an API as good as firebase.

Sort:  

I'll have to check it out. Right now I think I'm at my capacity for "new technologies being learned" though.

I think what happened was the docker networking was configured to open the port to mongodb, and someone just connected and dropped the data. Like I said, I didn't work too hard on it's first beta deployment :)

I have a large EC2 instance running steemd + mongodb + python chewing through the blockchain to rebuild those indexes right now. It's taking a little longer than I expected, but instead of deleting the ec2 instance (like I did last time), I'm just going to deactivate it. That will prevent a 2-3 hour full blockchain sync and then 11 million blocks of data processing. Next time (if there is one) I can just start it up and sync where I left off.

If I can get this hosted in a real production environment (as opposed to the VPS its on now), I'll make sure there's redundancy and backups to prevent all of this anyways :)

Coin Marketplace

STEEM 0.26
TRX 0.20
JST 0.038
BTC 96220.81
ETH 3675.45
USDT 1.00
SBD 3.90