Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 59087 invoked from network); 22 Jul 2010 16:57:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Jul 2010 16:57:10 -0000 Received: (qmail 18984 invoked by uid 500); 22 Jul 2010 16:57:08 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 18748 invoked by uid 500); 22 Jul 2010 16:57:07 -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 18636 invoked by uid 99); 22 Jul 2010 16:57:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jul 2010 16:57:07 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sdmnix@gmail.com designates 209.85.160.172 as permitted sender) Received: from [209.85.160.172] (HELO mail-gy0-f172.google.com) (209.85.160.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jul 2010 16:56:59 +0000 Received: by gyg8 with SMTP id 8so945389gyg.31 for ; Thu, 22 Jul 2010 09:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=wxIzlrV73nPADhQePGe5aqsZPWwnaaXucVjfeZjPyNg=; b=uchzudgeCd5x7NLD4QPSn3vqwTi6thUsE5re+VcjNq/oDrjBcEcogm1pZ91NByLit4 C18jx/gzairp61JW0tQy2rmZO2BoFHhWI+KRGUksXfymfZpfX9tohncZx3lDhWxsx93n M/tv2IjTus7SAkYuk/9MYtwf5EcTv1isBn3x8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=eoNnYN9/mWbsVMPO7M5aMbegnDs+dsJem+4o2EO63+UIpCqGTf1QY+uzrbQ4h/vqAw RKIip9FAuKav8nemMyd2vu+5Lli4XQpWXAbc4JyCxt+Yt8RpWwusF1zuE8XkkhXq9fzv c+HOSUxjpu69WY4SHDJetlC3hxB5RZE5wHjrk= MIME-Version: 1.0 Received: by 10.150.146.9 with SMTP id t9mr4197527ybd.112.1279817798817; Thu, 22 Jul 2010 09:56:38 -0700 (PDT) Received: by 10.151.103.17 with HTTP; Thu, 22 Jul 2010 09:56:38 -0700 (PDT) Date: Thu, 22 Jul 2010 10:56:38 -0600 Message-ID: Subject: Requesting data model suggestions From: Scott Mann To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hello, Although, I've done a bit of reading about Cassandra's data model and I've set up a Cassandra pair, I'm still unsure as to what might be best for my purposes. Briefly, I've got a set of strings A, B, and C. If needed, A could be represented as an integer. Each A is associated with exactly one B or C (but not both). A also has a number of parameters associated with it which change over time. These changes, however, are reported with the B or C identifier. Currently, in mysql, I have three tables, A', B', and C' each using A, B, and C as keys. When an update arrives, the code searches for the key (B or C) in the appropriate table, determines the associated A (using a foreign key), and then updates the values in the table row in A' with key=A. Anyone have ideas about how to model this in Cassandra? Thanks! -- -Scott