Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 34106 invoked from network); 15 Feb 2011 13:13:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Feb 2011 13:13:06 -0000 Received: (qmail 55576 invoked by uid 500); 15 Feb 2011 13:13:04 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 55274 invoked by uid 500); 15 Feb 2011 13:13:00 -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 55266 invoked by uid 99); 15 Feb 2011 13:12:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Feb 2011 13:12:59 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of augustyn.michal@gmail.com designates 209.85.216.44 as permitted sender) Received: from [209.85.216.44] (HELO mail-qw0-f44.google.com) (209.85.216.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Feb 2011 13:12:53 +0000 Received: by qwi2 with SMTP id 2so115802qwi.31 for ; Tue, 15 Feb 2011 05:12:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=b1+aU7NArUB6YztbVi6ba+A8gAGubiy7fem18u0G60o=; b=XyI9yI6Zg9+Vw6ateDj11Cxs6u7VF7a0vuaH+TOw1VliXdKzhoHZLwhscaDD7O6/2q lZzt/MBF8c2PyCPkcHvRKPRN6f1/i1mo3Gix1AmEn4uE3z99HotBK4VDZ8SipSxaboZQ dteGL75WOE9/Qna0Ld78RVyqg4RDMrmaqS7Ik= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Kr5Wp4+lQ4P2i+AdcusN9QxiuWrl3H5KRhJbipF5fpoMYJnA1Gtc/BalWu2A42p3rZ Sj/DhG0Q7ZrkxWeMViAu/Ytxky7wykKaax7iLo3nMB+DxbzpCuLJEhQgmWIp+G6d4wGT qyY3Iw0fESDcWP77147Wqg7GFjMDmKwHrggeg= MIME-Version: 1.0 Received: by 10.229.214.76 with SMTP id gz12mr3985307qcb.8.1297775552419; Tue, 15 Feb 2011 05:12:32 -0800 (PST) Received: by 10.229.246.201 with HTTP; Tue, 15 Feb 2011 05:12:32 -0800 (PST) In-Reply-To: References: Date: Tue, 15 Feb 2011 14:12:32 +0100 Message-ID: Subject: Re: online chat scenario From: =?ISO-8859-1?Q?Michal_August=FDn?= To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=00163628410cccd738049c51eaf8 --00163628410cccd738049c51eaf8 Content-Type: text/plain; charset=ISO-8859-1 The schema design depends on chatrooms/users/messages numbers. I.e. you can have one CF, where key is chatroom, column name is username, column value is the message and message time is the same as column timestamp. You can add day-timestamp to the chatroom name to avoid large rows. Augi 2011/2/15 Andrey V. Panov > I never did it. But I suppose you can use "chatroom name" as key and store > messages & nicks as columns in JSON and timestamp as columnName. > --00163628410cccd738049c51eaf8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The schema design depends on chatrooms/users/messages numbers. I.e. you can= have one CF, where key is chatroom, column name is username, column value = is the message and message time is the same as column timestamp.
You ca= n add day-timestamp to the chatroom name to avoid large rows.

Augi

2011/2/15 Andrey= V. Panov <pan= ov.andy@gmail.com>
I never did it. But I suppose you can use "chatroom name" as key = and store messages & nicks as columns in JSON and timestamp as columnNa= me.

--00163628410cccd738049c51eaf8--