[
https://issues.apache.org/jira/browse/IGNITE-22940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kirill Tkalenko updated IGNITE-22940:
-------------------------------------
Fix Version/s: 3.0
> Expose partition size to public API
> -----------------------------------
>
> Key: IGNITE-22940
> URL: https://issues.apache.org/jira/browse/IGNITE-22940
> Project: Ignite
> Issue Type: Improvement
> Reporter: Nusrat Shakarov
> Assignee: Kirill Tkalenko
> Priority: Major
> Labels: ignite-3
> Fix For: 3.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> In some cases it is useful to see how data distributed across partitions.
> So it would be useful to know the size of every partition. It looks like we
> have this data as a result of
> https://issues.apache.org/jira/browse/IGNITE-22506 epic.
> This data should be available via public API.
> Possible options(multiple can be implemented):
> # Add "size" field to one of the system views. For example, to
> local_partition_states - *preferable.*
> # Add "size" field to RecoveryApi#getLocalPartitionStates method. -
> *preferable.*
> # Add "size" field to Partition class in
> PartitionManager#primaryReplicasAsync - not sure this is correct
> # Optimize query(this is additional thing which can be done, not a best way
> to expose partition size to user):
> {code:java}
> select count(*) from table where "__part"=partitionId {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)