hyperledger / hyperledger/fabric-chaincode-go

Range query of composite keys

Open
#154 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
154
Forks
132
Avg merge
1h 7m
Merged PRs (30d)
4

Description

Initially raised by @aklenik on Discord.

> As I see, the functionality of the range query is limited across all chaincode SDKs to simple keys. However, behind the scenes, the range query methods of the SDKs call the same backing function as the partial query functions, which don't have the same limitations. That means that the reason for the limitation is not technical, since a range CAN be queried using composite keys.

> I can't really wrap my head around the why. Using composite keys is the recommended approach for defining structured and robust key spaces. While range query is a strong update-compatible API feature for efficiently traversing well-designed key spaces. The combination of the two is so evident that I was really surprised to see it fail.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.