[ 
https://issues.apache.org/jira/browse/PHOENIX-6115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17188096#comment-17188096
 ] 

Lars Hofhansl commented on PHOENIX-6115:
----------------------------------------

-v2 should be good. Passes tests I ran as well as local testing.

Also fixed up the use of generics a bit while I was in there.

Please have a look, this is simple and low-risk improvement.

> Avoid scanning prior row state for uncovered local indexes on immutable 
> tables.
> -------------------------------------------------------------------------------
>
>                 Key: PHOENIX-6115
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6115
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Lars Hofhansl
>            Assignee: Lars Hofhansl
>            Priority: Major
>             Fix For: 5.1.0, 4.16.0
>
>         Attachments: 6115-master-v2.txt, 6115-master.txt
>
>
> Looking at the code I realized that we retrieve the prior row state even when 
> is not necessary.
> Specifically it is not necessary when (a) the table is immutable and (b) the 
> indexes does not include any covered columns.
> The unnecessary work is in part a consequence of the changes for global 
> consistent indexing.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to