incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: Limit total number of columns for multiget_slice
Date Wed, 04 Aug 2010 22:00:01 GMT
No.  I can't think of a data model where that would be a good fit.

On Wed, Aug 4, 2010 at 5:15 PM, Kartal Guner <kguner@hakia.com> wrote:
> Hello, I want to know if the following is possible:
>
>
>
> I want to query multiple keys in a column family.  I want to limit the total
> # of columns returned.
>
>
>
> The number of columns for a given key can be anywhere from 0 to several
> million.
>
>
>
> For example I want to get 50 columns total from keys A & C.  If A and C have
> 40 columns each, I want the 40 columns from A and the first 10 columns from
> C.
>
>
>
> CF
>
> {
>
>                 A:            Key
>
>                 {
>
>                                 Col1 {..}
>
>                                 Col2 {..}
>
> …
>
>                 }
>
>
>
> B:            Key
>
>                 {
>
>                                 Col1 {..}
>
>                                 Col2 {..}
>
>                                 …
>
>                 }
>
>
>
> C:            Key
>
>                 {
>
>                                 Col1 {..}
>
>                                 Col2 {..}
>
>                                 …
>
>                 }
>
>
>
> D:            Key
>
>                 {
>
>                                 Col1 {..}
>
>                                 Col2 {..}
>
>                                 …
>
>                 }
>
> }
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com
Mime
View raw message