You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Bhuvan Rawal <bh...@gmail.com> on 2016/02/04 11:37:56 UTC

Want inputs about super column family vs map/list

Hi All,

There are two ways to achieve this :
1. Using super column family:

raman | atul | bhuvan
---------------------------
1234  | 5678 | 2345

OR
Using single Collection column :
Phone Number
---------------------------
Map <raman,1234>
<bhuvan,2345>
<atul,5678>

I would like to know which approach would be better in the below use cases :

   1. First Case - Frequent complete map Update
   2. Second Case - Frequent complete map Read
   3. Frequent Update only for specific fields.
   4. Frequent Read only for specific fields.

Also is there any way to configure cassandra-stress tool for testing this
scenario?

Thanks & Regards,
Bhuvan

Re: Want inputs about super column family vs map/list

Posted by Atul Saroha <at...@snapdeal.com>.
Hmm, I have same issue.
I would like to know how you are able migrating data from RDBMS to
cassandra in this way., i.e. making column's value as column name.

Are you using some programming script or datastax scoop support for this?

---------------------------------------------------------------------------------------------------------------------
Atul Saroha
*Sr. Software Engineer*
*M*: +91 8447784271 *T*: +91 124-415-6069 *EXT*: 12369
Plot # 362, ASF Centre - Tower A, Udyog Vihar,
 Phase -4, Sector 18, Gurgaon, Haryana 122016, INDIA

On Thu, Feb 4, 2016 at 4:07 PM, Bhuvan Rawal <bh...@gmail.com> wrote:

> Hi All,
>
> There are two ways to achieve this :
> 1. Using super column family:
>
> raman | atul | bhuvan
> ---------------------------
> 1234  | 5678 | 2345
>
> OR
> Using single Collection column :
> Phone Number
> ---------------------------
> Map <raman,1234>
> <bhuvan,2345>
> <atul,5678>
>
> I would like to know which approach would be better in the below use cases
> :
>
>    1. First Case - Frequent complete map Update
>    2. Second Case - Frequent complete map Read
>    3. Frequent Update only for specific fields.
>    4. Frequent Read only for specific fields.
>
> Also is there any way to configure cassandra-stress tool for testing this
> scenario?
>
> Thanks & Regards,
> Bhuvan
>

Re: Want inputs about super column family vs map/list

Posted by Robert Coli <rc...@eventbrite.com>.
On Thu, Feb 4, 2016 at 2:37 AM, Bhuvan Rawal <bh...@gmail.com> wrote:

> 1. Using super column family:
>

Super columns have been not-recommended for use for about five years now.

=Rob