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

jay wong commented on PHOENIX-1267:
-----------------------------------

I have a holiday in the past several days. so sorry for reply later.

I know your mean. normally the hint is more structured and a better way. I 
think use hint control the small is a good point.

the small scan will be set true default when both the startkey and stopkey is 
setted. if we have a order by query. and the small is true. the result will be 
Infinite loop.

So I think the small scan is not only a query optimize for user. I will cause a 
bug. 
So I think the smallScanForbidden is needed also.






> Set scan.setSmall(true) when appropriate
> ----------------------------------------
>
>                 Key: PHOENIX-1267
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1267
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: James Taylor
>            Assignee: jay wong
>         Attachments: smallscan.patch
>
>
> There's a nice optimization that has been in HBase for a while now to set a 
> scan as "small". This prevents extra RPC calls, I believe. We should add a 
> hint for queries that forces it to be set/not set, and make our best guess on 
> when it should default to true.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to