From user-return-17237-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu Jul 21 08:38:44 2011 Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-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 206B36D0D for ; Thu, 21 Jul 2011 08:38:44 +0000 (UTC) Received: (qmail 55449 invoked by uid 500); 21 Jul 2011 08:38:42 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 54593 invoked by uid 500); 21 Jul 2011 08:38:31 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 54540 invoked by uid 99); 21 Jul 2011 08:38:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2011 08:38:23 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.218.52] (HELO mail-yi0-f52.google.com) (209.85.218.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2011 08:38:16 +0000 Received: by yie19 with SMTP id 19so849206yie.11 for ; Thu, 21 Jul 2011 01:37:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.185.200 with SMTP id u48mr7092578yhm.464.1311237475310; Thu, 21 Jul 2011 01:37:55 -0700 (PDT) Received: by 10.236.175.196 with HTTP; Thu, 21 Jul 2011 01:37:55 -0700 (PDT) In-Reply-To: <887DCC48-F493-43FC-8129-F7707A06F233@vpro.nl> References: <887DCC48-F493-43FC-8129-F7707A06F233@vpro.nl> Date: Thu, 21 Jul 2011 10:37:55 +0200 Message-ID: Subject: Re: Pagination in couchdb From: Monica Razdan To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=20cf305640d9ee9dd804a89043f1 --20cf305640d9ee9dd804a89043f1 Content-Type: text/plain; charset=ISO-8859-1 Hey Max, Thanks for sending the links! However I don't find the solution for my problem in skip, considering they are inexpensive for large data sets, which is the case with my view. I was wondering if I can attach a pagination widget to my _attachments? I haven't got to the point to use url rewriting and redirecting the response using the path binder and indices which is why I am looking for solution beyond them Monica On Thu, Jul 21, 2011 at 10:20 AM, Nils Breunese wrote: > Max Ogden wrote: > > > you can also do pagination using just skip: > > > https://github.com/maxogden/recline/blob/master/attachments/script/recline.js#L105(demo > : > > http://max.couchone.com/senators/_design/recline/_rewrite) > > I never tried it, but learned from the mailinglist that using skip for > pagination is pretty inefficient once you get to larger skip values. > > Nils. > ------------------------------------------------------------------------ > VPRO www.vpro.nl > ------------------------------------------------------------------------ > --20cf305640d9ee9dd804a89043f1--