Comments (3)
@manish-sethi and I met this morning to discuss the DB design. @manish-sethi made many good points as to why the transactions should not be separated from the block bytes. These include
- Query performance: Much faster to read a block from the DB
- Storage performance: No need to calculate hash of every transaction when storing a block
- Size: Transaction data may actually be smaller than the hash
The plan is to create column families that will act as indexes and map transaction hashes to the block # and transaction index in the block. Calculating the transaction hash will be performed in a separate thread so that it does not slow down transaction processing.
from fabric.
One though about the column family that maps transactions hashes to block # and transaction index number. Currently, a transaction hash is not unique. You could send the same transaction in different blocks or the same block. To make transaction hashes unique, we need to do one of the following
- Create a GUID and store that in the transaction
- Transactions will need a sender. Maybe this is always unique due to our use of butterfly keys? Is every token unique?
- Some other idea to make the transaction hash unique
@jeffgarratt If we do one of these, the transaction hash will be unique and that can be used as the ID.
from fabric.
Added a separate column family to RocksDB for maintaining a mapping between queries keys and (blockId,txIndex). When a new block is committed, the entries in this column families are made in a separate thread. The client query thread waits for index completion up to the block level that the client thread notices when the query arrives.
@srderson we can make this configurable to add entries into this column families if we prefer to have these only on the peer nodes and not on the validator.
Deferring the implementation of some of the queries to issue #73 because of missing information in proto structures as yet.
from fabric.
Related Issues (20)
- typographical error in documentation
- Asset Management Example Chaincode Deployment Failure HOT 2
- [fabric 0.6.1-preview] running 4peers + CA on PBFT fails if we change PEER_ID
- issue for ee5b85c20f70b07bfd4fb6fb4dd023d49d9cbfc9 commit HOT 1
- issue for ee5b85c20f70b07bfd4fb6fb4dd023d49d9cbfc9 commit
- erro : Failed invoking CreateCertficatePair HOT 2
- Cannot dial to 0.0.0.0:7050, because of grpc: timed out while dialing
- Fabric gives error on firing "Query" command from REST API
- TLS error
- Logging into Marbles POC
- Hyperledger Fabric Consensus plugin PBFT error, Data not stored and Syn
- Error Message: βError unmarshaling message: proto: bad wiretype for field pbft.Request.Timestamp: got wiretype 0, want 2"
- Unable to decrypt the payload HOT 1
- test the tps about the fabric 1.0
- Property `message` in Error response body cannot be accessed.
- how to debug fabric code?
- Pulling ca.org1.example.com (hyperledger/fabric-ca:-1.0.4)β¦ ERROR: invalid tag format HOT 1
- adding an affliation is static, how to upgrade the default affiliations whenever new ca container is brought up?
- upgrading an existing channel to add a newly added org in the endorsement policies gives out the error: Error: proto: can't skip unknown wire type 6 for common.Envelope
- run first-network of fabric-samples error on Mac
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fabric.