Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 825BB9C05 for ; Fri, 22 Jun 2012 15:54:48 +0000 (UTC) Received: (qmail 85991 invoked by uid 500); 22 Jun 2012 15:54:44 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 85907 invoked by uid 500); 22 Jun 2012 15:54:44 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 85534 invoked by uid 99); 22 Jun 2012 15:54:44 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2012 15:54:44 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 3E7C21404B4 for ; Fri, 22 Jun 2012 15:54:44 +0000 (UTC) Date: Fri, 22 Jun 2012 15:54:44 +0000 (UTC) From: "Benoit Chesneau (JIRA)" To: dev@couchdb.apache.org Message-ID: <2117574264.44356.1340380484257.JavaMail.jiratomcat@issues-vm> In-Reply-To: <517563339.43753.1340365484489.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (COUCHDB-1501) Add flag to the changes API to return only new changes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-1501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399398#comment-13399398 ] Benoit Chesneau commented on COUCHDB-1501: ------------------------------------------ I will work on that patch if noone does. > Add flag to the changes API to return only new changes > ------------------------------------------------------ > > Key: COUCHDB-1501 > URL: https://issues.apache.org/jira/browse/COUCHDB-1501 > Project: CouchDB > Issue Type: New Feature > Components: JavaScript View Server > Affects Versions: 1.2 > Reporter: Daniel Gonzalez > Priority: Minor > Labels: changes, http > > As discussed in this thread: http://mail-archives.apache.org/mod_mbox/couchdb-user/201206.mbox/%3CCAAOi-OHB6%3DYu%2Bt%3DWkiFAypQAfnv%3DQd-PL4tELZNL1C1-TQvtWw%40mail.gmail.com%3E > I copy paste part of the conversation. > --- > I am subscribing to the _changes API. My database is quite big, and each time I restart my client, I get all old notifications. I only need the new notifications, since the moment that I subscribe to the feed. > I have seen that there is a "since" parameter, but this is not helping me further, because I do not know what is the last document sequence number. So I would need one of the following: > - a method to get the last sequence number to use as value for "since" > - a flag to tell the _changes API to just give me the changed *from now on*. This would be the most clean solution, since it saves me a request to get the since parameter (which can be outdated anyway very fast). Is there something like this? > --- > I ended up going the GET /dbname route > I guess there is no specific flag for the _changes API to request future changes... > --- -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira