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

Dmitry Konstantinov updated CASSANDRA-21363:
--------------------------------------------
    Description: 
BTreeSearchIterator - 2.65% of allocations within 
org.apache.cassandra.db.rows.AbstractRow#hasLiveData
We can use BTreeRow#minLocalDeletionTime to avoid iteration over cells in some 
scenarios, like:
in case of a non-empty row without tombstones we can just check:
{code} 
 if (minLocalDeletionTime == Cell.MAX_DELETION_TIME)
         return !BTree.isEmpty(btree);
{code}
and still the iteration
 !image-2026-05-10-17-14-07-547.png|width=900! 

  was:
BTreeSearchIterator - 2.65% of allocations within 
org.apache.cassandra.db.rows.AbstractRow#hasLiveData
We can use BTreeRow#minLocalDeletionTime to avoid iteration over cells in some 
scenarios, like: if (minLocalDeletionTime == Cell.MAX_DELETION_TIME)
         return !BTree.isEmpty(btree);

 !image-2026-05-10-17-14-07-547.png|width=900! 


> BTreeRow#hasLiveData: Avoid Cell iteration if there are no tombstones in a row
> ------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-21363
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21363
>             Project: Apache Cassandra
>          Issue Type: Improvement
>          Components: Local/Other
>            Reporter: Dmitry Konstantinov
>            Assignee: Dmitry Konstantinov
>            Priority: Normal
>         Attachments: image-2026-05-10-17-14-07-547.png
>
>
> BTreeSearchIterator - 2.65% of allocations within 
> org.apache.cassandra.db.rows.AbstractRow#hasLiveData
> We can use BTreeRow#minLocalDeletionTime to avoid iteration over cells in 
> some scenarios, like:
> in case of a non-empty row without tombstones we can just check:
> {code} 
>  if (minLocalDeletionTime == Cell.MAX_DELETION_TIME)
>          return !BTree.isEmpty(btree);
> {code}
> and still the iteration
>  !image-2026-05-10-17-14-07-547.png|width=900! 



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to