[
https://issues.apache.org/jira/browse/CASSANDRA-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025296#comment-13025296
]
Jonathan Ellis commented on CASSANDRA-2553:
-------------------------------------------
why do we need to branch here?
{code}
rows = (select.getKeys().size() > 1)
? multiGetSlice(keyspace, select)
: getSlice(keyspace, select);
{code}
Can't size==1 be handled by the multiget path as well?
> Add IN support to CQL SELECT, UPDATE statements
> -----------------------------------------------
>
> Key: CASSANDRA-2553
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2553
> Project: Cassandra
> Issue Type: Improvement
> Components: API
> Reporter: Jonathan Ellis
> Assignee: Pavel Yaskevich
> Labels: cql
> Fix For: 0.8.1
>
> Attachments: CASSANDRA-2553-v2.patch, CASSANDRA-2553.patch
>
>
> See CASSANDRA-2538 for example usage.
> (Note that UPDATE supporting IN is not very useful; normally you would want
> to use BATCHes instead. Still, unless adding it is more difficult for some
> reason, we might as well do it for consistency.)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira