cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aditya Narayan <>
Subject Re: Schema Design Question : Supercolumn family or just a Standard column family with columns containing serialized aggregate data?
Date Wed, 02 Feb 2011 14:37:19 GMT
Actually, I am trying to use Cassandra to display to users on my
applicaiton, the list of all Reminders set by themselves for
themselves, on the application.

I need to store rows containing the timeline of daily Reminders put by
the users, for themselves, on application. The reminders need to be
presented to the user in a chronological order like a news feed.
Each reminder has got certain tags associated with it(so that, at
times, user may also choose to see the reminders filtered by tags in
chronological order).

So I thought of a schema something like this:-

-Each Reminder details may be stored as separate rows in column family.
-For presenting the timeline of reminders set by user to be presented
to the user, the timeline row of each user would contain the Id/Key(s)
(of the Reminder rows) as the supercolumn names and the subcolumns
inside that supercolumns could contain the list of tags associated
with particular reminder. All tags set at once during first write. The
no of tags(subcolumns) will be around 8 maximum.

Any comments, suggestions and feedback on the schema design are requested..

Aditya Narayan

On Wed, Feb 2, 2011 at 7:49 PM, Aditya Narayan <> wrote:
> Hey all,
> I need to store supercolumns each with around 8 subcolumns;
> All the data for a supercolumn is written at once and all subcolumns
> need to be retrieved together. The data in each subcolumn is not big,
> it just contains keys to other rows.
> Would it be preferred to have a supercolumn family or just a standard
> column family containing "all the subcolumns data serialized in single
> column(s) " ?
> Thanks
> Aditya Narayan

View raw message