From user-return-30535-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Mon Dec 10 22:16:00 2012 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 046B3DC0B for ; Mon, 10 Dec 2012 22:16:00 +0000 (UTC) Received: (qmail 49985 invoked by uid 500); 10 Dec 2012 22:15:56 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 49960 invoked by uid 500); 10 Dec 2012 22:15:56 -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 49951 invoked by uid 99); 10 Dec 2012 22:15:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2012 22:15:56 +0000 X-ASF-Spam-Status: No, hits=2.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_REPLYTO_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.139.212.181] (HELO nm22.bullet.mail.bf1.yahoo.com) (98.139.212.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2012 22:15:47 +0000 Received: from [98.139.212.146] by nm22.bullet.mail.bf1.yahoo.com with NNFMP; 10 Dec 2012 22:15:25 -0000 Received: from [98.139.212.237] by tm3.bullet.mail.bf1.yahoo.com with NNFMP; 10 Dec 2012 22:15:25 -0000 Received: from [127.0.0.1] by omp1046.mail.bf1.yahoo.com with NNFMP; 10 Dec 2012 22:15:25 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 710062.57287.bm@omp1046.mail.bf1.yahoo.com Received: (qmail 39374 invoked by uid 60001); 10 Dec 2012 22:15:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1355177725; bh=Kwk6wX6pLpjmdy2a77vDY+Xjr3vmR092ZF/16sivNAo=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Qk/IEjnfSH2EWF0ilUI3QhTnVA86c9bMGJE8GA3C6710ER4crlsqdpZXymQPLaBlwiKS8iG8qr/z+nCCR2GDFd7vNyoSdUv+c89VhIPLennXsf7AB/xY5cRkDbh+jsl9Ii4kK8dz3+FBkVaJz1rsfwNSBctFsajZQxmPYy2tHK0= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=EUzySR53gCuIs1+vUmlrh4eIPtO65mpxoCabhALFO4c2fRSLKkEGbHRn80sUCWqgBvFbtPXYNEXnZ5hB2W3ka/t9tiGqHvi275f1vy6WKERJmFUtgMaY/mQ/fFXGn9huP8rfDa3pw5XVAQjzdjD/5RsrxrinDueelB18d+fS2Oo=; X-YMail-OSG: JlzHRXsVM1mXdBePlAL1owZtf2RxbBYi1inRIO52ovArC9h 2cOqPdtg5gAwbqYUE3rPCCUKnWTIPOf1khBr_.IviEBCTS6YCOSnUR.j6KGB LDyw1n3d5z4F5DxmkdT7lKGGGvjYTGL_s6f1iYHvrxx7H6DsuqxJfDT0Drcs UMcaIl9BZvGKWib7WEhrRMXGpudyiPGNH6hvWha2kq9kjC8WcFwrKVnPU7lg I8XPpzxQ9Q1Bx68eaGXmAPKEq_bvPEbTN52kJrtCBFgKH_CwlumM1J4mPKhd k8NNdPydA8kfpeQVSEw5Emiy88eE7KnMaT1gGtI0rXErtvQX1srkRtsGl22U G50FV2npGBMJyXx6kuYJgYVC4QGqtCscNzQJCFSeApWDC3crw15KVMZ.YnmM ih3R_ZEYcEk4GNBvp2RF.pHGOPawK5vlUySTwd0nxsUWjRrT7KFdiJCp0Wpo 4P3fmduQpjw0rDSklpZKw5YQpzWWcvSeNcY4yRsBYXQlEW_wSCfh2J3Oo46e S1Hsq4StuZX1y Received: from [199.21.86.226] by web160904.mail.bf1.yahoo.com via HTTP; Mon, 10 Dec 2012 14:15:25 PST X-Rocket-MIMEInfo: 001.001,V2VsbCwgbm90IHN1cmUgaG93IHBhcmFsbGVsIGlzIG11bHRpZ2V0LiBTb21lb25lIGlzIHNheWluZyBpdCdzIGluIHBhcmFsbGVsIHNlbmRpbmcgcmVxdWVzdHMgdG8gdGhlIGRpZmZlcmVudCBub2RlcyBhbmQgb24gZWFjaCBub2RlIGl0J3MgZXhlY3V0ZWQgc2VxdWVudGlhbGx5LiBJIGRpZG4ndCBib3RoZXIgbG9va2luZyBpbnRvIHRoZSBzb3VyY2UgY29kZSB5ZXQuIEFueW9uZSBrbm93cyBpdCBmb3Igc3VyZT8KCkkgYW0gdXNpbmcgSGVjdG9yLCBqdXN0IGNvcGllZCB0aGUgdGhyaWZ0IGRlZmluaXRpb24BMAEBAQE- X-Mailer: YahooMailWebService/0.8.128.478 References: <1355173667.89578.YahooMailNeo@web160903.mail.bf1.yahoo.com> Message-ID: <1355177725.34147.YahooMailNeo@web160904.mail.bf1.yahoo.com> Date: Mon, 10 Dec 2012 14:15:25 -0800 (PST) From: Wei Zhu Reply-To: Wei Zhu Subject: Re: multiget_slice SlicePredicate To: Cassandr usergroup In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-517069186-584053052-1355177725=:34147" X-Virus-Checked: Checked by ClamAV on apache.org ---517069186-584053052-1355177725=:34147 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Well, not sure how parallel is multiget. Someone is saying it's in parallel= sending requests to the different nodes and on each node it's executed seq= uentially. I didn't bother looking into the source code yet. Anyone knows i= t for sure?=0A=0AI am using Hector, just copied the thrift definition from = Cassandra site for reference.=0A=0AYou are right, the count is for each ind= ividual row.=0A=0AThanks.=0A-Wei=C2=A0=0A=0A=0A____________________________= ____=0A From: "Hiller, Dean" =0ATo: "user@cassandra.a= pache.org" ; Wei Zhu =0ASent:= Monday, December 10, 2012 1:13 PM=0ASubject: Re: multiget_slice SlicePredi= cate=0A =0AWhat's wrong with multiget=E2=80=A6parallel performance is great= from multiple disks and so usually that is a good thing.=0A=0AAlso, someth= ing looks wrong, since you have list keys, I would expect the Map t= o be Map>=0A=0AAre you sure you have that= correct?=C2=A0 IF you set range to 100, it should be 100 columns each row = but it never hurts to run the code and verify.=0A=0ALater,=0ADean=0APlayOrm= Developer=0A=0A=0AFrom: Wei Zhu = >=0AReply-To: "user@cassandra.apache.org"= >, Wei Zhu >=0ADate: Monday, December 10, 2012 = 2:07 PM=0ATo: Cassandr usergroup >=0ASubject: multiget_slice SlicePredicate=0A=0AI know it= 's probably not a good idea to use multiget, but for my use case, it's the = only choice,=0A=0AI have question regarding the SlicePredicate argument of = the multiget_slice=0A=0A=0AThe SlicePredicate takes slice_range which takes= start, end and range. I suppose start and end will apply to each individua= l row. How about range, is it a accumulative column count of all the rows o= r to the individual row?=0AIf I set range to 100, is it 100 columns per row= , or total?=0A=0AThanks for you reply,=0A-Wei=0A=0Amultiget_slice=0A=0A*=0A= map> multiget_slice(list keys, Col= umnParent column_parent, SlicePredicate predicate, ConsistencyLevel consist= ency_level) ---517069186-584053052-1355177725=:34147 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Well, not sure how pa= rallel is multiget. Someone is saying it's in parallel sending requests to = the different nodes and on each node it's executed sequentially. I didn't b= other looking into the source code yet. Anyone knows it for sure?

I am using Hector, just copied the thrift defin= ition from Cassandra site for reference.

You are right, the count is for each individu= al row.

Thanks.
-Wei&n= bsp;


From: "Hiller, Dean" <Dean.Hiller@nrel.gov>
= To: "user@cassandra.apache.or= g" <user@cassandra.apache.org>; Wei Zhu <wz1975@yahoo.com>
= Sent: Monday, December 10= , 2012 1:13 PM
Subject: Re: multiget_slice SlicePredicate

=0AWhat's wrong = with multiget=E2=80=A6parallel performance is great from multiple disks and= so usually that is a good thing.

Also, something looks wrong, since= you have list<binary> keys, I would expect the Map to be Map<bina= ry, list<ColumnOrSuperColumn>>

Are you sure you have that c= orrect?  IF you set range to 100, it should be 100 columns each row bu= t it never hurts to run the code and verify.

Later,
Dean
PlayO= rm Developer


From: Wei Zhu <wz1975@yahoo.com<mailto:wz1975@y= ahoo.com>>
Reply-To: "user@cassandra.apache.org= <mailto:user@cassandra.apache.org>" <user@cassandra.apache.org<mailto:user@ca= ssandra.apache.org>>, Wei Zhu <wz1975@yahoo.com<mailto:wz1975= @yahoo.com>>
Date: Monday, December 10, 2012 2:07 PM
To: Ca= ssandr usergroup <user@cassandra.apache.org<mail= to:user@cassandra.apache.org>>
Subject: multige= t_slice SlicePredicate

I know it's probably not a good idea to use m= ultiget, but for my use case, it's the only choice,

I have question = regarding the SlicePredicate argument of the multiget_slice


The SlicePredicat= e takes slice_range which takes start, end and range. I suppose start and e= nd will apply to each individual row. How about range, is it a accumulative= column count of all the rows or to the individual row?
If I set range t= o 100, is it 100 columns per row, or total?

Thanks for you reply,-Wei

multiget_slice

*
map<string,list<ColumnOrSupe= rColumn>> multiget_slice(list<binary> keys, ColumnParent column= _parent, SlicePredicate predicate, ConsistencyLevel consistency_level)
<= br>


---517069186-584053052-1355177725=:34147--