Car lease demo database location in IBM blockchain

+1 vote

I deployed car-lease-demo sample on a Linux system while working on IBM blockchain. I want to understand about the database storage and how hyperledger fabric uses the database to store key-value pairs. Also, where is the location of the database where all the data is stored?

I would also like to know if we can use a different db configuration like NOSQL databases like Neo4j, MongoDB.

Jun 7, 2018 in Blockchain by anonymous
94 views

1 answer to this question.

+1 vote
Best answer

Firstly, yes you can change the default DB to any other NoSQL DB.

Though the default implementation uses LevelDB as the backend store for data and is present on all peer nodes. To see it for yourself, you can enter the docker container in cli mode. The database is hosted in a separate container linked to the peer node via an open port.You can do the same for any other NoSQL DB and use the correct PUT and GET APIs in chain code to access them. But make sure that data gets replicated in all the DBs in time to maintain the consistency of the Blockchain network

answered Jun 7, 2018 by Christine
• 15,790 points

selected Aug 16, 2018 by Omkar

Related Questions In Blockchain

+1 vote
1 answer

How do i change the names of validating peers in IBM Bluemix blockchain?

IBM Bluemix Blockchain service Hyperledger Fabric v0.6 will ...READ MORE

answered Apr 10, 2018 in Blockchain by Perry
82 views
+1 vote
1 answer

Is it possible to store blockchain in a sql or no-sql database?

Currently, following are the options to store ...READ MORE

answered Apr 20, 2018 in Blockchain by Perry
• 17,010 points

edited Aug 9, 2018 by Omkar 52 views
0 votes
1 answer

IBM BLUEMIX BLOCKCHAIN SDK-DEMO failing

These types of intermittent issues are usually ...READ MORE

answered Aug 3, 2018 in Blockchain by charlie_brown
• 7,710 points
46 views
0 votes
1 answer
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 27,620 points
55 views
+1 vote
1 answer
+1 vote
1 answer

Error while deploying chaincode in IBM Blockchain. Please help.

Try stripping out the 'tree/master' portion of ...READ MORE

answered Apr 26, 2018 in Blockchain by Christine
• 15,790 points
77 views
0 votes
1 answer

How to make sure transactions take no fee in a private Ethereum blockchain?

In a private ethereum network you have ...READ MORE

answered Mar 26, 2018 in Blockchain by Christine
• 15,790 points

edited Mar 26, 2018 by Christine 72 views