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

Robert Stupp edited comment on CASSANDRA-7396 at 9/13/14 11:09 AM:
-------------------------------------------------------------------

I'm currently testing whether a kind of "CellFilter" works for this. Such a 
"CellFilter" could be used in {{SelectStatement#addValue}} to pre-select only 
those elements, that shall be part of the result set. This would reduce the 
serialization overhead - and it can also be used to optimize for list slice 
requests. Altogether this would be the "general purpose" optimization for slice 
requests.

Additionally there could be more optimizations in terms of column-slicing, 
which IMO could work for sets and maps but not for lists.

EDIT: branch updated with changed for "CellFilter" - works fine
EDIT2: removed {{?}} syntax


was (Author: snazy):
I'm currently testing whether a kind of "CellFilter" works for this. Such a 
"CellFilter" could be used in {{SelectStatement#addValue}} to pre-select only 
those elements, that shall be part of the result set. This would reduce the 
serialization overhead - and it can also be used to optimize for list slice 
requests. Altogether this would be the "general purpose" optimization for slice 
requests.

Additionally there could be more optimizations in terms of column-slicing, 
which IMO could work for sets and maps but not for lists.

EDIT: branch updated with changed for "CellFilter" - works fine

> Allow selecting Map key, List index
> -----------------------------------
>
>                 Key: CASSANDRA-7396
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7396
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: API
>            Reporter: Jonathan Ellis
>            Assignee: Robert Stupp
>              Labels: cql
>             Fix For: 3.0
>
>
> Allow "SELECT map['key]" and "SELECT list[index]."  (Selecting a UDT subfield 
> is already supported.)



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

Reply via email to