Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 29106 invoked from network); 5 Sep 2010 19:31:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Sep 2010 19:31:18 -0000 Received: (qmail 27250 invoked by uid 500); 5 Sep 2010 19:31:16 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 27137 invoked by uid 500); 5 Sep 2010 19:31:15 -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 27129 invoked by uid 99); 5 Sep 2010 19:31:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Sep 2010 19:31:15 +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 (athena.apache.org: domain of augustyn.michal@gmail.com designates 209.85.216.44 as permitted sender) Received: from [209.85.216.44] (HELO mail-qw0-f44.google.com) (209.85.216.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Sep 2010 19:31:10 +0000 Received: by qwc9 with SMTP id 9so3658884qwc.31 for ; Sun, 05 Sep 2010 12:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=kMSSsN6CkVCDyVT0nkyBgJ55Wv6xBFhY2dwyMzSx7e8=; b=G+1JEOIxgCGkNYfZAICGmLqJxfzHxJQL50GokAgJD3qe0DxywVShN7Z/aBGce8gAIB 4s+1i3+vUrdRuqzSLWY5Tnu7sGNjwt+xXSOdifUzvuZyyZu5UW0YmQQYxymk3F9mVxxX 60+FznZKMBThDtT4nH7Mr38ar+WicyqOY7wJA= 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=K8Enq0+t6N0YoaBgCnT4iSfj3bk3cXtbxmrIi1AVWde4qla1Vs/PwgauwD995dBX4E gaPcBX+xPMdXpQ4myc4ZnOEUl0MgE4GrTBe5AyeB29dvTeIhTug0rPI/ZpmHgxde7uIK /H7LraFyXHN+1k/HfC0u7i4vhmo0AMpuR+m90= MIME-Version: 1.0 Received: by 10.224.19.144 with SMTP id a16mr1034905qab.346.1283715049906; Sun, 05 Sep 2010 12:30:49 -0700 (PDT) Received: by 10.229.25.144 with HTTP; Sun, 5 Sep 2010 12:30:49 -0700 (PDT) In-Reply-To: <1283710474.639320410@192.168.2.229> References: <1283710474.639320410@192.168.2.229> Date: Sun, 5 Sep 2010 21:30:49 +0200 Message-ID: Subject: Re: skip + limit support in GetSlice From: =?ISO-8859-1?Q?Michal_August=FDn?= To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0015175cda328aea58048f88332a --0015175cda328aea58048f88332a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I know that "Prev/Next" is good solution for web applications. But when I want to access data from another application or when I want to access pages randomly... I don't know the internal structure of memtables etc., so I don't know if columns in row are indexable. If now, then I just want to transfer my workaround to server (to avoid huge network traffic)... 2010/9/5 Stu Hood > Cassandra supports the recommended approach from: > http://www.percona.com/ppc2009/PPC2009_mysql_pagination.pdf > > For large numbers of items, skip + limit is extremely inefficent. > > -----Original Message----- > From: "Michal August=FDn" > Sent: Sunday, September 5, 2010 5:39am > To: user@cassandra.apache.org > Subject: skip + limit support in GetSlice > > Hello, > > probably this is feature request. Simply, I would like to have support fo= r > standard pagination (skip + limit) in GetSlice Thrift method. Is this > feature on the road map? > > Now, I have to perform GetSlice call, that starts on "" and "limit" is se= t > to "skip" value. Then I read the last column name returned and subsequent= ly > perform the final GetSlice call - I use the last column name as "start" a= nd > set "limit" to "limit" value. > > This workaround is not very efficient when I need to skip a lot of column= s > (so "skip" is high) - then a lot of data must be transferred via network. > So > I think that support for Skip in GetSlice would be very useful (to avoid > high network traffic). > > The implementation could be very straightforward (same as the workaround) > or > maybe it could be more efficient - I think that whole row (so all columns= ) > must fit into memory so if we have all columns in memory... > > Thank you! > > Augi > > > --0015175cda328aea58048f88332a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I know that "Prev/Next" is good solution for web applications. Bu= t when I want to access data from another application or when I want to acc= ess pages randomly...

I don't know the internal stru= cture of memtables etc., so I don't know if columns in row are=A0indexa= ble. If now, then I just want to transfer my workaround to server (to avoid= huge network traffic)...


--0015175cda328aea58048f88332a--