Bitcoin Forum
November 06, 2024, 09:05:52 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: //////////////////////////////////////////////////  (Read 2415 times)
Ikinoki (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 100


View Profile
November 22, 2013, 11:59:50 PM
Last edit: May 31, 2020, 04:14:36 PM by Ikinoki
 #1

/////////////////////////

Donations to 1LHTGFYHfMDgfgmDcYugW6RsKKfKBRfLVg
moderate
Member
**
Offline Offline

Activity: 98
Merit: 10

nearly dead


View Profile
November 23, 2013, 12:41:48 AM
 #2


I know that leveldb ..

So is there a way to store blockchain in key-value storages ?


Have you tried finding out what leveldb is ?
Sukrim
Legendary
*
Offline Offline

Activity: 2618
Merit: 1007


View Profile
November 23, 2013, 01:36:21 AM
 #3

Do you know what levelDB is used for in bitcoind? Roll Eyes

Anyways, if you need a faster version of it, you can check facebook's pimped version: http://rocksdb.org/

https://www.coinlend.org <-- automated lending at various exchanges.
https://www.bitfinex.com <-- Trade BTC for other currencies and vice versa.
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4270
Merit: 8805



View Profile WWW
November 23, 2013, 02:42:28 AM
 #4

Why don't you go do some testing and find out where it falls down?

Otherwise it's all just buzzwords: REDIS HAZ WEBSCALE!!!!

You might also try looking at the implementations which alreay have used postgresql...
Sukrim
Legendary
*
Offline Offline

Activity: 2618
Merit: 1007


View Profile
November 23, 2013, 03:49:50 AM
 #5

Yeah, looks like MtGox tried the multiple bitcoind thingie - they started to get into race conditions and double spend each other from time to time.

https://www.coinlend.org <-- automated lending at various exchanges.
https://www.bitfinex.com <-- Trade BTC for other currencies and vice versa.
justusranvier
Legendary
*
Offline Offline

Activity: 1400
Merit: 1013



View Profile
November 23, 2013, 04:46:29 AM
 #6

Both btcd and Bits of Proof are capable of swapping out block storage databases.
wumpus
Hero Member
*****
qt
Offline Offline

Activity: 812
Merit: 1022

No Maps for These Territories


View Profile
November 26, 2013, 07:14:03 AM
Last edit: November 26, 2013, 08:01:57 AM by wumpus
 #7

It's the wallet implementation in bitcoind (which uses berkelydb) that has performance/scaling problems, not the block chain handling (which uses leveldb).

The 0.9 release will include "disable wallet" mode, and I expect in time that will be the recommended way of running your own full node. You can use any SPV-ish wallet client (or multiple!) on top.

Sure, because you'll need to cross verify the txs, and it's not that easy with no direct leveldb access and only json capabilities of bitcoind, and I'm not sure it's possible to partly lock leveldb to make a transaction atomically.
You may be able to do what you want through the raw transaction API (createrawtransaction/signrawtransaction/sendrawtransaction/getrawtransaction). There is no direct leveldb access but there are low-level queries in the JSON interface.

You can also lock specific outputs from being spent using lockunspent.

Bitcoin Core developer [PGP] Warning: For most, coin loss is a larger risk than coin theft. A disk can die any time. Regularly back up your wallet through FileBackup Wallet to an external storage or the (encrypted!) cloud. Use a separate offline wallet for storing larger amounts.
jdbtracker
Hero Member
*****
Offline Offline

Activity: 727
Merit: 500


Minimum Effort/Maximum effect


View Profile
November 26, 2013, 08:47:44 AM
 #8

Hi everyone,

I know that leveldb is fine for embedded, but we need to think big. Soon or later the Nodes will also be a business.
So leveldb will start to slow down soon or later.

So is there a way to store blockchain in SQL (postgresql, mysql), No-SQL (mongo, orient), key-value storages (redis, memcached)?
It would be really nice to choose a medium, especially for big business.

I think SQLite is part of BerkleyDB, I went and looked at the performance between SQLite and LevelDB is pretty much the same... so what needs improvement?

If you think my efforts are worth something; I'll keep on keeping on.
I don't believe in IQ, only in Determination.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!