Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 15137 invoked from network); 25 Aug 2010 18:21:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Aug 2010 18:21:09 -0000 Received: (qmail 39236 invoked by uid 500); 25 Aug 2010 18:21:07 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 39175 invoked by uid 500); 25 Aug 2010 18:21:07 -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 39167 invoked by uid 99); 25 Aug 2010 18:21:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Aug 2010 18:21:07 +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 petr.odut@gmail.com designates 209.85.216.179 as permitted sender) Received: from [209.85.216.179] (HELO mail-qy0-f179.google.com) (209.85.216.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Aug 2010 18:21:00 +0000 Received: by qyk9 with SMTP id 9so809203qyk.10 for ; Wed, 25 Aug 2010 11:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=F/z7RaLC4CYLVWzfBthLird8Zk3KTA09Y2NN4C5wpIc=; b=D+mgVDqc1RmlCAg4GBedy5l4clblKlk3q4lHdK4a4pjViHTxnOsrpDkGwqmiWlCoSZ d4reKSSPYw64m4u28PMmNPTghkuCQkI+3n4WUT4RTFMeGAkURgoW2MwAibiCLU/XK6K8 ra0HtKJUtaONnfP97AeRpbOczA3JQQWPm3Xuk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=q5rDpl0BjuhXr6Ye7oDxS0f/GX5M8Yzjo6Wl/ZEM+yt14vX5fdumU6NtSo2qGDtGsZ KMDYoAOmVesX6P0rxuMad4m+1OsFQl4mnRS8153QaUkPpwNEGbwmjmcD9a1cmwrIHawv DJ2F4yMYdjS7xdrqLCGZ0j7ivlwysnroZKKB8= MIME-Version: 1.0 Received: by 10.224.65.169 with SMTP id j41mr5844970qai.154.1282760439883; Wed, 25 Aug 2010 11:20:39 -0700 (PDT) Received: by 10.229.39.143 with HTTP; Wed, 25 Aug 2010 11:20:38 -0700 (PDT) Date: Wed, 25 Aug 2010 20:20:38 +0200 Message-ID: Subject: SEO friendly pagination From: Petr Odut To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=000feaf436f159e983048ea9f070 X-Virus-Checked: Checked by ClamAV on apache.org --000feaf436f159e983048ea9f070 Content-Type: text/plain; charset=ISO-8859-1 Hi, I've read about pagination in cassandra. My current implementation is get_range_slices with startKey = lastKey + 1, but I need to get the specified page directly. Is it any chance to do this? If you look at twitter, it has direct pagination too: http://twitter.com/PetrOdut?page=1 http://twitter.com/PetrOdut?page=2 http://twitter.com/PetrOdut?page=3 Thanks, Petr --000feaf436f159e983048ea9f070 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,
I've read about pagination in cassandra. My current implementati= on is get_range_slices with startKey =3D lastKey + 1, but I need to get the= specified page directly. Is it any chance to do this?

If you look a= t twitter, it has direct pagination too:
http://twitter.com/PetrOdu= t?page=3D1
http://t= witter.com/PetrOdut?page=3D2
http://twitter.com/PetrOdut?page=3D3

Thanks, Petr
--000feaf436f159e983048ea9f070--