get specific records after GetHistoryForKey #fabric-chaincode #chaincode #database #fabric-questions


Nikos Karamolegkos
 

Hello, I use Level DB and I am using GetHistoryForKey to get the history of a key which return some records. Is there an efficient way to parse the returned records in order to find some specific values. For example If CAR3 has a history of color change 10 times can I get somehow in which of these was yellow and red without just traversing the output looking for these two colors?  

Another question, is is bad for the BC logic to have Keys that never updated? I mean that every write to ledger create a new key without updating an existing one.

Join fabric@lists.hyperledger.org to automatically receive all group messages.