Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[suggestion] Lightweight way to get amount of entities #4092

Closed
Mingela opened this issue Nov 28, 2023 · 2 comments
Closed

[suggestion] Lightweight way to get amount of entities #4092

Mingela opened this issue Nov 28, 2023 · 2 comments
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

Comments

@Mingela
Copy link
Contributor

Mingela commented Nov 28, 2023

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

@Mingela Mingela added Enhancement New feature or request iroha2-dev The re-implementation of a BFT hyperledger in RUST api-changes Changes in the API for client libraries labels Nov 28, 2023
@Mingela Mingela changed the title [suggestion] Lightweight way to get amount of entities instead of explicit data entries [suggestion] Lightweight way to get amount of entities Nov 28, 2023
@nxsaken nxsaken added this to Iroha Sep 4, 2024
@nxsaken nxsaken moved this to Backlog in Iroha Sep 4, 2024
@Erigara
Copy link
Contributor

Erigara commented Oct 1, 2024

@DCNick3 should we close this?

@DCNick3
Copy link
Contributor

DCNick3 commented Oct 1, 2024

Yeah, this is dupe of #4984, implemented in #5016

@DCNick3 DCNick3 closed this as completed Oct 1, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in Iroha Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants