Author

Topic: SQL for storing blockchain transactions (Read 1545 times)

full member
Activity: 148
Merit: 100
Crazy!
May 10, 2013, 11:24:39 PM
#5
You should definitively consider using mongodb instead of a sql database:
- it stores json, so you can directly store the outputs of the bitcoind commands
- it's highly scalable (sharding and replica sets)
- it's very easy to use
- it can store UGE amounts of data and still perform very well on queries
- sql databases aren't a great thing because of the number of "sub tables" needed (to store the inputs/outputs of the transactions, etc.)
member
Activity: 116
Merit: 10
newbie
Activity: 37
Merit: 0
because we can't query the blockchain for certain data. we need to store it in our own DB.
Calls like getRawTransaction, such as computing an addresses balance etc
hero member
Activity: 700
Merit: 500
The block chain essentially is a database of all transactions. Why would you need another database?
newbie
Activity: 37
Merit: 0
Is anybody saving the blockchain transactions.
Does anyone have a SQL schema they want to share?
Or can anyone help with pointers
Jump to: