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 8C38F179FB for ; Tue, 3 Mar 2015 15:19:31 +0000 (UTC) Received: (qmail 83278 invoked by uid 500); 3 Mar 2015 15:19:21 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 83241 invoked by uid 500); 3 Mar 2015 15:19:21 -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 83231 invoked by uid 99); 3 Mar 2015 15:19:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 15:19:21 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of oifa.yulian@gmail.com designates 209.85.220.41 as permitted sender) Received: from [209.85.220.41] (HELO mail-pa0-f41.google.com) (209.85.220.41) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 15:19:16 +0000 Received: by pablj1 with SMTP id lj1so18646081pab.8 for ; Tue, 03 Mar 2015 07:18:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=UN4af+zFgYYNO1h7kpRHv84ReubU+F1naPn2v/6U08E=; b=CcYqvVfP4XJ/UV0mRKapTCcxDOzGRhv/rV3VET/0hQn5MHJYtwisf6bxb8iGBO67KB lQqjStv0HLSkhgUtA+0LuYYXky/AExJSHvtA2pDHyL8w+mHNWtD+wds27dxpjIp33IOp +d8YCdiHGga53HNw0AbhhUH+TfNu9ce84HIZS5IWYyyKlFuVxOLYRG3P2r5EQQgaLw3O m7LTRCLbixyRMoQgBaXnX8nNt82MCc47KaIesArmUPpK7f8APjrDVjGPs0C6WUzRe9l4 12sjZN6RYucFBEXO8pn16VvJO7yvzoW4UXo62H1vbBgvUM6sEcei3UGSFqf4r0HsNrLv 9Mhg== MIME-Version: 1.0 X-Received: by 10.70.91.49 with SMTP id cb17mr57107938pdb.35.1425395890748; Tue, 03 Mar 2015 07:18:10 -0800 (PST) Received: by 10.70.102.209 with HTTP; Tue, 3 Mar 2015 07:18:10 -0800 (PST) In-Reply-To: References: Date: Tue, 3 Mar 2015 17:18:10 +0200 Message-ID: Subject: Re: Composite Keys in cassandra 1.2 From: Yulian Oifa To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a11c2e256bb8279051063d7bb X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2e256bb8279051063d7bb Content-Type: text/plain; charset=UTF-8 Hello Initially problem is that customer wants to have an option for ANY query , which does not fits good with NOSQL.However the size of data is too big for Relational DB. There are no typical queries on the data, there are 10 fields , based on which ( any mix of them also ) queries should be made. Till now i allowed only single field query ( in specific cases with 2 fields ) so i had indexes CFs for each field and that solved a problem.Since now i need compounds , sometimes 5-6 fields i either need to iterate over index CF based on some column ( or may be read several indexes and find common ids ) or create some index that will allow me to read data based on any part. Creating index for each group of fields of course is not an option since number of indexes will be huge , and disk usage will be too big. Best regards Yulian Oifa On Mon, Mar 2, 2015 at 5:33 PM, Kai Wang wrote: > AFIK it's not possible. The fact you need to query the data by partial row > key indicates your data model isn't proper. What are your typical queries > on the data? > > On Sun, Mar 1, 2015 at 7:24 AM, Yulian Oifa wrote: > >> Hello to all. >> Lets assume a scenario where key is compound type with 3 types in it ( >> Long , UTF8, UTF8 ). >> Each row stores timeuuids as column names and empty values. >> Is it possible to retreive data by single key part ( for example by long >> only ) by using java thrift? >> >> Best regards >> Yulian Oifa >> >> >> > --001a11c2e256bb8279051063d7bb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello
Initially problem is th= at customer wants to have an option for ANY query , which does not fits goo= d with NOSQL.However the size of data is too big for Relational DB.
The= re are no typical queries on the data, there are 10 fields , based on which= ( any mix of them also ) queries should be made.
Till now i allow= ed only single field query ( in specific cases with 2 fields ) so i had ind= exes CFs for each field and that solved a problem.Since now i need compound= s , sometimes 5-6 fields i either need to iterate over index CF based on so= me column ( or may be read several indexes and find common ids ) or create = some index that will allow me to read data based on any part. Creating inde= x for each group of fields of course is not an option since number of index= es will be huge , and disk usage will be too big.

Best regards=
Yulian Oifa


On Su= n, Mar 1, 2015 at 7:24 AM, Yulian Oifa <oifa.yulian@gmail.com><= /span> wrote:
=
Hello to all.
Lets assume a scenario where key is c= ompound type with 3 types in it ( Long , UTF8, UTF8 ).
Each row st= ores timeuuids as column names and empty values.
Is it possible to= retreive data by single key part ( for example by long only ) by using jav= a thrift?

Best regards
Yulian Oifa
<= div>




--001a11c2e256bb8279051063d7bb--