You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Kirill Tkalenko (Jira)" <ji...@apache.org> on 2024/11/14 11:32:00 UTC

[jira] [Assigned] (IGNITE-22940) Expose partition size to public API

     [ https://issues.apache.org/jira/browse/IGNITE-22940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kirill Tkalenko reassigned IGNITE-22940:
----------------------------------------

    Assignee: Kirill Tkalenko

> 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
>
> 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)