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 3903E92E2 for ; Mon, 11 Jun 2012 20:44:38 +0000 (UTC) Received: (qmail 18898 invoked by uid 500); 11 Jun 2012 20:44:35 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 18878 invoked by uid 500); 11 Jun 2012 20:44:35 -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 18869 invoked by uid 99); 11 Jun 2012 20:44:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2012 20:44:35 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.220.172] (HELO mail-vc0-f172.google.com) (209.85.220.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2012 20:44:29 +0000 Received: by vcqp1 with SMTP id p1so2878342vcq.31 for ; Mon, 11 Jun 2012 13:44:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=HUpB6/fDUQ2jsEzyVBgapeTGeWE1FM94zg0TT2sQaWI=; b=TTQLNBqRwQcMZwEOBP0M2CcfU4iLcoCXOTrMyAi13WIrncyr0YgzJkSLJo0Qic+c7J gH6o8nmonlsEgCGGaDRBx5ustLBHW9bH54FXyn/Ez/JA6/wXXMiPyqT0vBbJ2iVxZ1YX NL4VbdS8OlqkYxwckiIhO8fMaLJBh+MRlytDyEU577H6ZrLjd33A/kxVX35ahD5c/WuV TLHE7ct2gWT+QEpRcwp+l87RG7Rb+mEmPBuBjqdjQSkec0MKa8lZzorDVwZ5BNpxBqbt szCLh6zLzY7gsBRgNrnE+40xU2+vdjLzSnKDcvA6mLjisfhzPm5xz9a/caTPulWZLXjA gj5A== MIME-Version: 1.0 Received: by 10.52.25.70 with SMTP id a6mr11135133vdg.78.1339447447638; Mon, 11 Jun 2012 13:44:07 -0700 (PDT) Received: by 10.52.74.162 with HTTP; Mon, 11 Jun 2012 13:44:07 -0700 (PDT) In-Reply-To: References: Date: Mon, 11 Jun 2012 22:44:07 +0200 Message-ID: Subject: Re: Offset in slicequeries for pagination From: "R. Verlangen" To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=20cf3079bdda4fd3d104c23869c6 X-Gm-Message-State: ALoCoQnUorlm2l9gDT7wqxo6dBhjUYkWI8XCLPnSZDrd6SWGopCD1O+CO6GlSrMECql2g+ttixS6 --20cf3079bdda4fd3d104c23869c6 Content-Type: text/plain; charset=ISO-8859-1 I solved this with creating a manual index with as column keys integers and column values the uuid's of the results. Then run a slicequery to determine the batch to fetch. 2012/6/11 Cyril Auburtin > using 10 results maximum per page, > > to go directly to 14th page, there is no offset=141 possibility I guess? > or does a Java client proposes that? > > What is the best solution, perform a get with a limit = page*10, and then > a get with a column_start equals the lastest column received, and a limit > of 10, > I guess also, client side should cache results but it's off topic > -- With kind regards, Robin Verlangen *Software engineer* * * W http://www.robinverlangen.nl E robin@us2.nl Disclaimer: The information contained in this message and attachments is intended solely for the attention and use of the named addressee and may be confidential. If you are not the intended recipient, you are reminded that the information remains the property of the sender. You must not use, disclose, distribute, copy, print or rely on this e-mail. If you have received this message in error, please contact the sender immediately and irrevocably delete this message and any copies. --20cf3079bdda4fd3d104c23869c6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I solved this with creating a manual index with as column keys integers and= column values the uuid's of the results. Then run a slicequery to dete= rmine the batch to fetch.

2012/6/11 Cyril= Auburtin <cyril.auburtin@gmail.com>
using=A0=A010 results maximum per page,
=
to go directly to 14th page, there is no offset=3D141 possib= ility I guess? or does a Java client proposes that?

What is the best solution, perform a get with a limit = =3D page*10, and then a get with a column_start equals the lastest column r= eceived, and a limit of 10,
I guess also, client side should cache results but it's off topic<= /div>



--
With kind re= gards,

Robin Verlangen
Software engineer

E robin@us2.nl

Disclaimer: The information= contained in this message and attachments is intended solely for the atten= tion and use of the named addressee and may be confidential. If you are not= the intended recipient, you are reminded that the information remains the = property of the sender. You must not use, disclose, distribute, copy, print= or rely on this e-mail. If you have received this message in error, please= contact the sender immediately and irrevocably delete this message and any= copies.

--20cf3079bdda4fd3d104c23869c6--