From user-return-15104-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Sat Feb 26 18:01:43 2011 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 73788 invoked from network); 26 Feb 2011 18:01:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Feb 2011 18:01:42 -0000 Received: (qmail 42607 invoked by uid 500); 26 Feb 2011 18:01:41 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 42545 invoked by uid 500); 26 Feb 2011 18:01:39 -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 42537 invoked by uid 99); 26 Feb 2011 18:01:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Feb 2011 18:01:38 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kungfooguru@gmail.com designates 209.85.215.180 as permitted sender) Received: from [209.85.215.180] (HELO mail-ey0-f180.google.com) (209.85.215.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Feb 2011 18:01:32 +0000 Received: by eyg24 with SMTP id 24so1000395eyg.11 for ; Sat, 26 Feb 2011 10:01:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=TuddEofgDTIts34wlFF2ZBu7AiR1w3inHA/eVxC0I6w=; b=SEpy+heciA9UhXuFM6+p0/hAHFG/lZQsz/EDbv/5hJzClUEKEHf4OA+2+pDexcx7cj n5BVsDbdFfzug4E4EpK/fAIE3NudQho64SnXc/OxmckaJTHqa6aqV+9iTxqE/Os9kUvn IW1o7CICqifFO1H54gh2uvMwv3Q7IXih7o948= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=MpsbDiAV8QN3qjjAnca0avaepLTa+Q/psRuLQQU6KFNew4dgYrOn9A0dweeNTuIfk1 cxURfcuz0i3WPpdQEl4+qiiGKKdoSeIUwlopfC6bzYlEo+pndOyL8auHcqHvqnzPMFmj XAVi0BsYoaFcL34G4+kAiYQ3z//1V5FeGhJXQ= MIME-Version: 1.0 Received: by 10.213.17.200 with SMTP id t8mr439018eba.1.1298743271041; Sat, 26 Feb 2011 10:01:11 -0800 (PST) Sender: kungfooguru@gmail.com Received: by 10.213.2.207 with HTTP; Sat, 26 Feb 2011 10:01:11 -0800 (PST) In-Reply-To: References: Date: Sat, 26 Feb 2011 12:01:11 -0600 X-Google-Sender-Auth: P9O3nJa0uN_Btysn1OItJO2Rabc Message-ID: Subject: Re: Last 10 documents From: Tristan Sloughter To: user@couchdb.apache.org Cc: Alexander Uvarov Content-Type: multipart/alternative; boundary=00151748e744532c21049d333b68 --00151748e744532c21049d333b68 Content-Type: text/plain; charset=ISO-8859-1 My understanding is skip should only be used with large numbers. If I have thousands of documents that would be bad, right? Tristan On Sat, Feb 26, 2011 at 11:59 AM, Alexander Uvarov < alexander.uvarov@gmail.com> wrote: > Use ?skip=X where X = N - 10 > > N = count of documents (using reduce) > > On Sat, Feb 26, 2011 at 10:55 PM, Tristan Sloughter > wrote: > > I was hoping with descending being true and limit=10 I could get the last > 10 > > documents in a view. > > > > It does not seem to work for me, is there a way to get the last X results > in > > a view without knowing the keys? > > > > Thanks, > > Tristan > > > --00151748e744532c21049d333b68--