Caleb Rackliffe created CASSANDRA-19675:
-------------------------------------------

             Summary: 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
            Reporter: Caleb Rackliffe
            Assignee: Caleb Rackliffe


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.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to