Re: Modeling nested collection with C* 2.0

2016-01-28 Thread Lorand Kasler
gt; *Envoyé :* jeudi 28 janvier 2016 16:38 > *À :* user@cassandra.apache.org > *Objet :* Re: Modeling nested collection with C* 2.0 > > > > Generally, you should use clustering columns to model nested structures, > unless they really are simply list/map structures. > > >

RE: Modeling nested collection with C* 2.0

2016-01-28 Thread aeljami.ext
collection with C* 2.0 Generally, you should use clustering columns to model nested structures, unless they really are simply list/map structures. But, first, as with all data modeling in Cassandra, start by looking at how you intend to query the data. Do you need to query individual addresses, email

Re: Modeling nested collection with C* 2.0

2016-01-28 Thread Jack Krupansky
Generally, you should use clustering columns to model nested structures, unless they really are simply list/map structures. But, first, as with all data modeling in Cassandra, start by looking at how you intend to query the data. Do you need to query individual addresses, email addresses, streets,

Re: Modeling nested collection with C* 2.0

2016-01-28 Thread Carlos Alonso
Hi Ahmed, I think modelling them as a map where you can 'label' your emails or addresses sounds like a good option. More info here: https://docs.datastax.com/en/cql/3.1/cql/cql_using/use_map_t.html Regards Carlos Alonso | Software Engineer | @calonso On 28 January

Re: Modeling nested collection with C* 2.0

2016-01-28 Thread Ryan Svihla
Ahmed, Just using text and serializing as Json is the easy way and a common approach. However, this list is for Cassandra commiter discussion, please be so kind as to use the regular user list for data modeling questions or for any future responses to this email thread. Regards, Ryan Svihla