4/103 questions · Unlock full access
Q1

A developer is troubleshooting a slow-performing chaincode query that uses a complex selector to find assets based on multiple JSON attributes. The underlying state database is CouchDB. What is the most effective way to improve the performance of this query? ```mermaid graph TD ClientApp -- query('{"selector":{"owner":"Alice", "color":"blue"}}') --> Peer Peer -- GetQueryResult --> Chaincode Chaincode -- CouchDB Mango Query --> CouchDB subgraph CouchDB direction LR DB_Scan[Full DB Scan] --> SlowResponse{Slow Response} end CouchDB --> Chaincode Chaincode --> Peer Peer --> ClientApp ```

Q2

Level DB is the default database for Hyperledger Fabric and is particularly appropriate when ledger states comprise what type of data?

Q3

When creating a network according to an organization's structure and also bootstrap a channel what are the following artifacts we would need to generate?

Q4

Which Hyperledger tool would you select to invoke, deploy or query blocks, transactions and associated data, network information (name, status, list of nodes), chain codes and transaction families, as well as other relevant information stored in the ledger?