QuestionQ27

Hyperledger Fabric Networks

What should be considered when implementing efficient CouchDB queries from chaincode?

  • A Using OLAP (Online analytical processing) and Cube functionality of CouchDB is enough to implement efficient queries.
  • B Using complex indexes for certain columns is enough even if full scan operators like $or, $in and $regex are used.
  • C Using indexes, focusing on simple queries and avoiding full index scans like with operators $or, $in and $regex.
  • D Using advanced relational algebra and SQL query language options of CouchDB is enough to implement efficient queries.
Explanation

Efficient CouchDB JSON queries use appropriate indexes and simple selectors. Operators such as $or, $in, and $regex can cause full index or database scans, increasing response time and degrading network performance.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!