Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 60886 invoked from network); 16 Mar 2009 13:07:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Mar 2009 13:07:51 -0000 Received: (qmail 61774 invoked by uid 500); 16 Mar 2009 13:07:50 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 61709 invoked by uid 500); 16 Mar 2009 13:07:50 -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 61698 invoked by uid 99); 16 Mar 2009 13:07:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Mar 2009 06:07:50 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.68.5.15] (HELO relay01.pair.com) (209.68.5.15) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 16 Mar 2009 13:07:41 +0000 Received: (qmail 64923 invoked from network); 16 Mar 2009 13:07:19 -0000 Received: from 96.33.90.152 (HELO ?192.168.1.195?) (96.33.90.152) by relay01.pair.com with SMTP; 16 Mar 2009 13:07:19 -0000 X-pair-Authenticated: 96.33.90.152 Message-Id: From: Damien Katz To: dev@couchdb.apache.org In-Reply-To: <961140962.1237208330415.JavaMail.jira@brutus> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: [jira] Commented: (COUCHDB-290) Include sequence number in update notifications Date: Mon, 16 Mar 2009 09:07:18 -0400 References: <961140962.1237208330415.JavaMail.jira@brutus> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org I agree with Jan. I just realized, I think the planned COMET interfaces for near- realtime replication will obsolete update the notification process. That should give us all the flexibility we want here. -Damien On Mar 16, 2009, at 8:58 AM, Jan Lehnardt (JIRA) wrote: > > [ https://issues.apache.org/jira/browse/COUCHDB-290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682305 > #action_12682305 ] > > Jan Lehnardt commented on COUCHDB-290: > -------------------------------------- > > @Adam Good one. > > @Eric The default use case is that you track the last seq_nr you > queried on. The only special case is the first request where you > don't have a seq_nr and get everything from your DB. There is > nothing "unfortunate" about that, it's the API. I don't see how > including the current seq_nr in the notification would help at all > in this case. It would help if the result of _all_docs_by_seq would > include the then latest seq_nr so the process can store it and I > believe it does. > > Adding a list of documents comes with more problems: > > 1) In a bulk operation, you might get _a lot_ of ids and you'd need > to take care of that. > 2) The API is meant to be asynchronous. CouchDB does not have to > track which documents get sent to the notifier process in case of an > error. The process would just restart with its last know sequence > number. It significantly simplifies on the CouchDB end which is good > for reliability. I think the extra step to go for the process is not > too bad. > > @Robert so you query _all_docs_by_seq with a startkey and endkey? > Why not just drop the endkey? > > >> Include sequence number in update notifications >> ----------------------------------------------- >> >> Key: COUCHDB-290 >> URL: https://issues.apache.org/jira/browse/COUCHDB-290 >> Project: CouchDB >> Issue Type: Improvement >> Affects Versions: 0.9 >> Reporter: Elliot Murphy >> Priority: Minor >> Fix For: 0.9 >> >> Attachments: couchdb-sequences.patch, couchdb-sequences.patch >> >> >> Hi! There's been requests to include the sequence number when >> sending an update notification. Thanks to the guidance from davisp >> on #couchdb on March 13th, I've been able to put together a little >> patch that does just that. In the future I'm interested in doing >> the same for the create notification, and perhaps extending create/ >> delete/update notifications to include a list of affected doc IDs. >> For now though, just this simple patch. > > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. >