sk0x50 commented on issue #11836:
URL: https://github.com/apache/ignite/issues/11836#issuecomment-2636578824
Hello @vitthalbywar-tibco ,
> Is this not a correct expectation that until the first transaction
complete(delete), second query should return either count before delete
transaction or count after delete transaction?
Well, your expectation is not correct. The `IgniteCache.size()` does not
participate in any transactions, in other words this method is not
transactional. Moreover, it is implemented using an internal compute task,
where each job calculates the size on a node independently.
```
/**
* Gets the number of all entries cached across all nodes.
...
* NOTE: this operation is distributed and will query all participating
nodes for their cache sizes.
...
*/
public int size(CachePeekMode... peekModes) throws CacheException;
```
Thanks,
S.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]