Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 62144 invoked from network); 11 Apr 2010 10:29:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Apr 2010 10:29:14 -0000 Received: (qmail 83309 invoked by uid 500); 11 Apr 2010 10:29:13 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 83292 invoked by uid 500); 11 Apr 2010 10:29:11 -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 83280 invoked by uid 99); 11 Apr 2010 10:29:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Apr 2010 10:29:10 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of markxr@gmail.com designates 209.85.218.222 as permitted sender) Received: from [209.85.218.222] (HELO mail-bw0-f222.google.com) (209.85.218.222) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Apr 2010 10:29:02 +0000 Received: by bwz22 with SMTP id 22so3766657bwz.25 for ; Sun, 11 Apr 2010 03:28:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=+NAapOGGto2WgNkaOnpRV7hYGyYWEYkkbzW5EbYIq44=; b=wkidhjlkT/yMBlEoOw0UTgllVzEHGzPzx33bid7rMHHE2LC3CUVywNYjp5SWUS5/+h WI/MoYwFs6ZDqYXXlySx2KpsBa6sk5qC6b58sek9t4OM9vChdtE1EeatHa0VQlkLI4dK oPYurwSgEbkipzOHUhM98LHhVSlNrop79e758= 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=VSoZ5LO+z8+J/aAFbXQ4PsPhYdlnt6hIxcuG3cdnhw2Jgf9MYAf7/PE3XbzmIu7Rv8 +7bcdh0aovLVkFB9EARAR4Xrjnu1l9nKhAAncwWzbz0EzNql5QTly89ev4Cbo6PWIEMe 1IxVjBJxQhZoTuP5rn26Dp75uUqdYanl4jAbA= MIME-Version: 1.0 Received: by 10.204.63.134 with HTTP; Sun, 11 Apr 2010 03:28:42 -0700 (PDT) In-Reply-To: References: Date: Sun, 11 Apr 2010 10:28:42 +0000 Received: by 10.204.127.70 with SMTP id f6mr2897572bks.76.1270981722360; Sun, 11 Apr 2010 03:28:42 -0700 (PDT) Message-ID: Subject: Re: concept to query cassandra From: Mark Robson To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0016e6d99ca113cbca0483f37e2c X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d99ca113cbca0483f37e2c Content-Type: text/plain; charset=ISO-8859-1 On 11 April 2010 07:59, Lucifer Dignified wrote: > For a very simple query wherin we need to check username and password I > think keeping incremental numeric id as key and keeping the name and value > same in the column family should work. > It is highly unlikely that your application has enough usernames/passwords that you need Cassandra to store them in. If you have < 1Bn rows, I really think you should reconsider whether Cassandra is the best solution. Remember that you pay for Cassandra's high availability / scalability features with a lack of these other features (secondary indexes, joins, query optimiser) - be sure it's worth it. There are workarounds, but they essentially involve rewriting your RDBMS to use Cassandra as a back-end. This is not a simple task, nor one which should be necessary. Remember that if you have SOME big data, and some small data, you don't need to keep it all in the same place. A common use-case is to keep your big stuff (heavy write workloads etc) in Cassandra and the others in a more familiar database. Mark --0016e6d99ca113cbca0483f37e2c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On 11 April 2010 07:59, Lucifer Dignified <vineetdaniel@gmai= l.com> wrote:
For a very simple query wherin we need to check username and password=A0 I = think keeping incremental numeric id as key and keeping the name and value same in the column family should work.
=
It is highly unlikely that your application has enough usernames/passwo= rds that you need Cassandra to store them in.

If you have < 1Bn r= ows, I really think you should reconsider whether Cassandra is the best sol= ution.

Remember that you pay for Cassandra's high availability / scalabili= ty features with a lack of these other features (secondary indexes, joins, = query optimiser) - be sure it's worth it.

There are workarounds,= but they essentially involve rewriting your RDBMS to use Cassandra as a ba= ck-end. This is not a simple task, nor one which should be necessary.

Remember that if you have SOME big data, and some small data, you don&#= 39;t need to keep it all in the same place. A common use-case is to keep yo= ur big stuff (heavy write workloads etc) in Cassandra and the others in a m= ore familiar database.

Mark
--0016e6d99ca113cbca0483f37e2c--