Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 17152 invoked from network); 10 Apr 2010 13:15:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Apr 2010 13:15:33 -0000 Received: (qmail 45013 invoked by uid 500); 10 Apr 2010 13:15:32 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 44985 invoked by uid 500); 10 Apr 2010 13:15:32 -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 44977 invoked by uid 99); 10 Apr 2010 13:15:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Apr 2010 13:15:32 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [218.102.48.210] (HELO imsm057dat.netvigator.com) (218.102.48.210) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Apr 2010 13:15:25 +0000 Received: from X200 ([219.77.10.119]) by imsm057dat.netvigator.com (InterMail vM.7.05.01.01 201-2174-106-103-20060222) with ESMTP id <20100410131500.SBCY18307.imsm057dat.netvigator.com@X200> for ; Sat, 10 Apr 2010 21:15:00 +0800 From: "Dop Sun" To: References: <007201cad864$bf391980$3dab4c80$@com> In-Reply-To: Subject: RE: How many KeySpace will you use in a single application? Date: Sat, 10 Apr 2010 21:14:53 +0800 Message-ID: <008301cad8af$cf253900$6d6fab00$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcrYryoPP35fgwWBTZet/UJhcUto6AAAISvg Content-Language: en-us X-Virus-Checked: Checked by ClamAV on apache.org Thanks, I note it down. -----Original Message----- From: Jonathan Ellis [mailto:jbellis@gmail.com]=20 Sent: Saturday, April 10, 2010 9:10 PM To: user@cassandra.apache.org Subject: Re: How many KeySpace will you use in a single application? Yes, one keyspace per app is the normal way to design things. On Fri, Apr 9, 2010 at 11:17 PM, Dop Sun wrote: > Hi, a question troubles me now: how many KeySpaces one application is better > to use? > > > > The question is coming out since 0.6, Cassandra introduced a new API = named > as =93login=94, which is done against a specific keySpace. Thanks to = the > org.apache.cassandra.auth.AllowAllAuthenticator, the old version = clients can > still work without authentication. > > > > Actually, while I=92m working with the previous version, I just take = the > KeySpace as another level of the whole structure, KeySpace =96 = ColumnFamily =96 > Super Column (optional) =96 Column =96 Value. =A0And consider the = whole Cassandra > cluster as the root of all these, and one application controls = everything > under this cluster. > > > > Now, looks like I need to re-think this and put the KeySpace as a kind = of > root. It may be better to make one application only takes one KeySpace = (a > silly question? Since all old time, one application usually uses only = one > database, but forgive me, I may abuses the flexibility of Cassandra.)? = Is > there any pros or cons to user multiple key spaces vs. single key = spaces, > other than the authentication requirements? > > > > Can anyone give me some suggestions on this? > > > > Dop