Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3365B6766 for ; Wed, 18 May 2011 17:44:59 +0000 (UTC) Received: (qmail 53446 invoked by uid 500); 18 May 2011 17:44:57 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 53415 invoked by uid 500); 18 May 2011 17:44:57 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 53407 invoked by uid 99); 18 May 2011 17:44:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2011 17:44:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of openvictor@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-iw0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2011 17:44:50 +0000 Received: by iwn39 with SMTP id 39so1899852iwn.31 for ; Wed, 18 May 2011 10:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=EF7b8JLsee61PeWpoyh5kbPhMPzn/lJpbSQJ0OZ/AsA=; b=GxxVWzKgoexWqpoWTYvfW0edijsfyccTxQx9slflPOdKqAetkL+0ED2d8vQ+rz7qcj mMvZuvyffnyQf3wGwXXoPhFQ28MbjCVdkXr8syjunrLXQ6imsJU+Mz1lr4me2ANRelfN Ex4qA89XVA5jLKuxFXdUpwiH1/EqQ/iAhVlpA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=nJyQfbVZkQRSU2gaYafKyLNsrQlWQoQIwz+Ws9sDTuOAJAVTkvP7J7O+nqBsP1U979 4Vq8oTy3m6bU/KyZ4XCb5LR5sJZhcxICPTKslZhCwnJl/EypUvOP3NnT4SmgcnKue3B1 kRlg12MYa7Qm3e9CXLIrgo1CkaDBxFQzc5agI= MIME-Version: 1.0 Received: by 10.43.70.204 with SMTP id yh12mr2469797icb.430.1305740670270; Wed, 18 May 2011 10:44:30 -0700 (PDT) Received: by 10.231.40.13 with HTTP; Wed, 18 May 2011 10:44:30 -0700 (PDT) Date: Wed, 18 May 2011 13:44:30 -0400 Message-ID: Subject: Recommandation on how to organize CF From: openvictor Open To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=bcaec51d2246d1fe6304a390701e --bcaec51d2246d1fe6304a390701e Content-Type: text/plain; charset=ISO-8859-1 Hello all, I know organization is a broad topic and everybody may have an idea on how to do it, but I really want to have some advices and opinions and I think it could be interesting to discuss this matter. Here is my problem: I am designing a messaging system internal to a website. There are 3 big structures which are Message, MessageList, MessageBox. A message/messagelist is identified only by an UUID; a MessageBox is identified by a name(utf8 string). A messagebox has a set of MessageList in it and a messagelist has a set of message in it, all of them being UUIDs. Currently I have only two CF : message and message_time. Message is a UTF8Type (cassandra 0.6.11, soon going for 0.8) and message_time is a TimeUUIDType. For example if I want to request all message in a certain messagelist I do : message_time['messagelist:uuid(messagelist)'] If I want information of a mesasge I do message['message:uuid(message)'] If I want all messagelist for a certain messagebox ( called nameofbox for user openvictor for this example) I do : message_time['messagebox:openvictor:nameofbox'] My question to Cassandra users is : is it a good idea to regroup all those things into two CF ? Is there some advantages / drawbacks of this two CFs and for long term should I change my organization ? Thank you, Victor --bcaec51d2246d1fe6304a390701e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello all,

I know organization is a broad topic and everybody may ha= ve an idea on how to do it, but I really want to have some advices and opin= ions and I think it could be interesting to discuss this matter.

Here is my problem: I am designing a messaging system internal to a website= . There are 3 big structures which are Message, MessageList, MessageBox. A = message/messagelist is identified only by an UUID; a MessageBox is identifi= ed by a name(utf8 string). A messagebox has a set of MessageList in it and = a messagelist has a set of message in it, all of them being UUIDs.
Currently I have only two CF : message and message_time. Message is a UTF8T= ype (cassandra 0.6.11, soon going for 0.8) and message_time is a TimeUUIDTy= pe.

For example if I want to request all message in a certain messag= elist I do : message_time['messagelist:uuid(messagelist)']
If I want information of a mesasge I do message['message:uuid(message)&= #39;]
If I want all messagelist for a certain messagebox ( called nameof= box for user openvictor for this example) I do : message_time['messageb= ox:openvictor:nameofbox']

My question to Cassandra users is : is it a good idea to regroup all th= ose things into two CF ? Is there some advantages / drawbacks of this two C= Fs and for long term should I change my organization ?

Thank you, Victor
--bcaec51d2246d1fe6304a390701e--