Re: Storing values of mixed types in a list

2014-06-25 Thread Tuukka Mustonen
Actually, come to think of it, of course I cannot run greater/less than queries on list items anyway (would be something like "WHERE items CONTAINS > 4"), so binary encoding should be fine. Thanks for everybody's input! Tuukka On Wed, Jun 25, 2014 at 1:49 PM, Tuukka Mustone

Re: Storing values of mixed types in a list

2014-06-25 Thread Tuukka Mustonen
of the suggested workarounds... Tuukka On Wed, Jun 25, 2014 at 10:47 AM, Sylvain Lebresne wrote: > On Wed, Jun 25, 2014 at 8:49 AM, Tuukka Mustonen < > tuukka.musto...@gmail.com> wrote: > >> Unfortunately, I need to query per list items. That's why I'

Re: Storing values of mixed types in a list

2014-06-24 Thread Tuukka Mustonen
lustering columns and use them for querying. For the cells where you store > values, use blob type. > > > > > On Tue, Jun 24, 2014 at 8:21 PM, Tuukka Mustonen < > tuukka.musto...@gmail.com> wrote: > >> What if I need to query by list items? >> >> 1. Jeremy

Re: Storing values of mixed types in a list

2014-06-24 Thread Tuukka Mustonen
d types. > > Pavel > > > > > On Tue, Jun 24, 2014 at 9:18 AM, Jeremy Jongsma > wrote: > >> Use a ByteBuffer value type with your own serialization (we use protobuf >> for complex value structures) >> On Jun 24, 2014 5:30 AM, "Tuukka Mustonen

Storing values of mixed types in a list

2014-06-24 Thread Tuukka Mustonen
Hello, I need to store a list of mixed types in Cassandra. The list may contain numbers, strings and booleans. So I would need something like list. Is this possible in Cassandra and if not, what workaround would you suggest for storing a list of mixed type items? I sketched a few (using a list pe