[
https://issues.apache.org/jira/browse/CASSANDRA-19675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17854471#comment-17854471
]
Caleb Rackliffe edited comment on CASSANDRA-19675 at 6/12/24 3:32 PM:
----------------------------------------------------------------------
5.0 patch: [https://github.com/apache/cassandra/pull/3370]
(This will almost certainly merge up cleanly.)
was (Author: maedhroz):
5.0 patch: [https://github.com/apache/cassandra/pull/3370]
> Avoid streams in the common case for UpdateTransaction creation
> ---------------------------------------------------------------
>
> Key: CASSANDRA-19675
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19675
> Project: Cassandra
> Issue Type: Improvement
> Components: Feature/SAI
> Reporter: Caleb Rackliffe
> Assignee: Caleb Rackliffe
> Priority: Normal
> Fix For: 5.0.x, 5.x
>
> Attachments: ci_summary.html, new_update_txn_streams.png
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Some recent Accord profiling highlighted some easily addressable inefficiency
> in the way we create new {{UpdateTransaction}} objects in
> {{SecondaryIndexManager}} that have existed since the introduction of index
> groups for SAI. We should be able to clean this up by avoiding stream
> creation or even iteration over the groups when there is a single index
> group, which is going to be the most common case with SAI anyway. If we do
> have to iterate, there should also be no reason to copy the collection of
> index groups via {{listIndexGroups()}}, although that copying can remain in
> the method itself for external callers.
> !new_update_txn_streams.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]