[ 
https://issues.apache.org/jira/browse/IGNITE-8149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16593465#comment-16593465
 ] 

Ivan Pavlukhin commented on IGNITE-8149:
----------------------------------------

Basic idea of size calculation is based on following points:
* Introduced TxCounters entity is used for accumulation various counters of 
running transaction.
* During transaction execution size delta is accumulated in TxCounters by 
mutating operations.
* Size changes become visible in the end of transaction.

> MVCC TX: Size method should use tx snapshot
> -------------------------------------------
>
>                 Key: IGNITE-8149
>                 URL: https://issues.apache.org/jira/browse/IGNITE-8149
>             Project: Ignite
>          Issue Type: Task
>          Components: cache, mvcc
>            Reporter: Igor Seliverstov
>            Assignee: Ivan Pavlukhin
>            Priority: Major
>             Fix For: 2.7
>
>
> Currently cache.size() returns number of entries in cache trees while there 
> can be several versions of one key-value pairs.
> We should use tx snapshot and count all passed mvcc filter entries instead.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to