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

Nusrat Shakarov updated IGNITE-22940:
-------------------------------------
    Description: 
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: 
{code:java}
select count(*) from table where "__part"=partitionId {code}

  was:
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
 # Optimize query: 
{code:java}
select count(*) from table where "__part"=partitionId {code}


> 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
>            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: 
> {code:java}
> select count(*) from table where "__part"=partitionId {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to