[suggestion] Lightweight way to get amount of entities #4092
Labels
api-changes
Changes in the API for client libraries
Enhancement
New feature or request
iroha2-dev
The re-implementation of a BFT hyperledger in RUST
Feature request
Currently there is no way to get an amount of entities for a query. There are no explicit queries like
getEntityCount(filter)
either.Motivation
Querying values like
count
is pretty standard for a storage, which is one of the use cases for Iroha. Implementing this on the client side may be too resource consumptive (for both client and Iroha).Introducing explicit count-queries or expanding the existing way the cursor/paging is implemented with an additional attribute
count
to determine how many entries there are is requested. Other options are welcome as well.Who can help?
@mversic
The text was updated successfully, but these errors were encountered: