maedhroz commented on code in PR #4353:
URL: https://github.com/apache/cassandra/pull/4353#discussion_r2678369706
##########
src/java/org/apache/cassandra/index/sai/StorageAttachedIndexGroup.java:
##########
@@ -173,6 +173,15 @@ public Index.Indexer indexerFor(Predicate<Index>
indexSelector,
return indexers.isEmpty() ? null : new Index.Indexer()
{
+ @Override
+ public void begin()
+ {
+ // TODO is this a good solution? I only need this because we
do not always
+ // indexed everything in insertRow and updateRow.
+ for (Index.Indexer indexer : indexers)
+ indexer.begin();
Review Comment:
Yeah, it would be really nice to avoid iterator creation overhead here on a
hot path. What modifications to `VectorMemoryIndex` don't flow through
`insertRow()` or `updateRow()`?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]