You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Francisco Guerrero (Jira)" <ji...@apache.org> on 2026/05/25 16:37:00 UTC
[jira] [Commented] (CASSANDRA-21363) BTreeRow#hasLiveData: Avoid Cell iteration if there are no tombstones in a row
[ https://issues.apache.org/jira/browse/CASSANDRA-21363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18083328#comment-18083328 ]
Francisco Guerrero commented on CASSANDRA-21363:
------------------------------------------------
+1 thanks for the patch
> 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
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org