You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by GitBox <gi...@apache.org> on 2023/01/09 05:47:21 UTC

[GitHub] [phoenix] kadirozde commented on a diff in pull request #1531: PHOENIX-6832 Uncovered Global Secondary Indexes

kadirozde commented on code in PR #1531:
URL: https://github.com/apache/phoenix/pull/1531#discussion_r1064298983


##########
phoenix-core/src/main/java/org/apache/phoenix/hbase/index/IndexRegionObserver.java:
##########
@@ -815,6 +818,10 @@ private void getCurrentRowStates(ObserverContext<RegionCoprocessorEnvironment> c
                                      BatchMutateContext context) throws IOException {
         Set<KeyRange> keys = new HashSet<KeyRange>(context.rowsToLock.size());
         context.dataRowStates = new HashMap<ImmutableBytesPtr, Pair<Put, Put>>(context.rowsToLock.size());
+        if (context.hasUncoveredIndex && !context.hasGlobalIndex && !context.hasTransform

Review Comment:
   @tkhurana, You are right. I made the necessary change and included a test case for it. Currently, if a mutation in a mini batch is a partial update, the data table rows will read for all mutations in the batch. We can further optimize this in future by just reading rows only for partial mutations instead of all mutations.



-- 
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: issues-unsubscribe@phoenix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org