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

Aleksandr Polovtsev updated IGNITE-22507:
-----------------------------------------
    Description: 
I propose to add a method to the {{MvPartitionStorage}} interface that will 
allow to get an *estimated* size of a partition. This method will have the 
following limitations:

# It only allows to calculate the amount of the *most recent* data (i.e. data 
located at the tops of version chains), no time-traveling is allowed.
# It provides the size of the partition regardless any ongoing transaction data 
(i.e. write intents are not resolved and are omitted);
# Calling this method should be performed fast, no partition scanning is 
allowed. It is proposed to have a counter that will be both stored in memory 
and on the persistent storage (for persistent storage engines) and that will be 
updated when a transaction commits.

The following should be done in this ticket:

# Add the {{MvPartitionStorage#estimatedSize}} method declaration with a 
javadoc;
# Implement this method in the {{TestMvPartitionStorage}};
# Add tests that can later be reused by all other implementations of partition 
storages.

  was:
I propose to add a method to the {{MvPartitionStorage}} interface that will 
allow to get an *estimated* size of a partition. This method will have the 
following limitations:

# It only allows to calculate the amount of the *most recent* data (i.e. data 
located at the tops of version chains), no time-traveling is allowed.
# It provides the size of the partition regardless any ongoing transaction data 
(i.e. write intents are not resolved and are omitted).

The following should be done in this ticket:

# Add the {{MvPartitionStorage#estimatedSize}} method declaration with a 
javadoc;
# Implement this method in the {{TestMvPartitionStorage}};
# Add tests that can later be reused by all other implementations of partition 
storages.


> Add MvPartitionStorage#estimatedSize method
> -------------------------------------------
>
>                 Key: IGNITE-22507
>                 URL: https://issues.apache.org/jira/browse/IGNITE-22507
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Vladimir Pligin
>            Assignee: Aleksandr Polovtsev
>            Priority: Critical
>              Labels: ignite-3
>
> I propose to add a method to the {{MvPartitionStorage}} interface that will 
> allow to get an *estimated* size of a partition. This method will have the 
> following limitations:
> # It only allows to calculate the amount of the *most recent* data (i.e. data 
> located at the tops of version chains), no time-traveling is allowed.
> # It provides the size of the partition regardless any ongoing transaction 
> data (i.e. write intents are not resolved and are omitted);
> # Calling this method should be performed fast, no partition scanning is 
> allowed. It is proposed to have a counter that will be both stored in memory 
> and on the persistent storage (for persistent storage engines) and that will 
> be updated when a transaction commits.
> The following should be done in this ticket:
> # Add the {{MvPartitionStorage#estimatedSize}} method declaration with a 
> javadoc;
> # Implement this method in the {{TestMvPartitionStorage}};
> # Add tests that can later be reused by all other implementations of 
> partition storages.



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

Reply via email to